float abs()
Returns the absolute value of the 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
string format(string fmt)
Returns a string of a formatted number according to a format string.
Methods in this pseudo-class can be executed on floating-point values.
Definition: Pseudo_QC_Float.dox.h:5
int typeCode()
Returns Qore::NT_FLOAT.
int sign()
Returns -1 if the number is negative, 0 if it is zero, or 1 if it is positive.
bool strp()
Returns True because float values can be converted to strings.
bool val()
Returns True if the float is non-zero, False if zero.
bool intp()
Returns True because float values can be converted to integers.