Logo Search packages:      
Sourcecode: abakus version File versions  Download package

HNumber HNumber::operator+ ( const HNumber num ) const

Adds another number.

Definition at line 433 of file hmath.cpp.

References HNumber(), and isNan().

{
  if( isNan() ) return HNumber( *this );
  if( num.isNan() ) return HNumber( num );
  
  HNumber result;
  h_destroy( result.d->num );
  result.d->num = h_add( d->num, num.d->num );
  
  return result;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index