bool nanp()
Returns True if the number is NaN (not a number)
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:5
int prec()
Returns the precision of the current number.
number number(softnumber n)
Converts the argument to a number value.
bool strp()
Returns True because number values can be converted to strings.
int typeCode()
Returns Qore::NT_NUMBER.
bool infp()
Returns True if the number is infinity (+ or -)
bool intp()
Returns True because number values can be converted to integers.
number abs()
Returns the absolute value of the number.
int sign()
Returns -1 if the number is negative, 0 if it is zero, or 1 if it is positive.
Methods in this pseudo-class can be executed on arbitrary precision number values.
Definition: Pseudo_QC_Number.dox.h:5
string format(string fmt)
Returns a string of a formatted number according to a format string.
string toString()
Returns the string representation of the value; the default is an empty string.
bool val()
Returns True if the number is non-zero, False if zero.