Qore Programming Language Reference Manual  0.8.12.3
Pseudo_QC_Float.dox.h
1 namespace Qore {
4 /***/
5 class <float> : public <value> {
6 
7 public:
9 
23 float abs();
24 
25 public:
27 
52 string format(string fmt);
53 
54 public:
56 
69 bool infp();
70 
71 public:
73 
84 bool intp();
85 
86 public:
88 
101 bool nanp();
102 
103 public:
105 
117 int sign();
118 
119 public:
121 
132 bool strp();
133 
134 public:
136 
150 int typeCode();
151 
152 public:
154 
168 bool val();
169 };
170 };
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
bool infp()
Returns True if the number is infinity (+ or -)
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.
bool nanp()
Returns True if the number is NaN (not a number)
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.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
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.