ln3 Method - IsZero, IsNotZero
Description
Determine whether a large number is zero. These functions are only marginally more efficient than comparing the large number to zero. They are primarily for backward compatibility with ln2.
Signature
bool IsZero( void ) const
bool IsNotZero( void ) const
Parameters
( none )
Returns
( bool )
true
if the large number is zero (not zero);
false
otherwise.
Example
Check to see if the value in the variable
X
is zero. If it is, print out the string
X is zero
:
ln X; ... if( X.IsZero( ) ) cout << "X is zero" << endl;