Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
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
48 string format(string fmt);
49
50 public:
52
63 bool intp();
64
65 public:
67
79 int sign();
80
81 public:
83
94 bool strp();
95
96 public:
98
112 int typeCode();
113
114 public:
116
130 bool val();
131 };
132 };
<float>::abs
float abs()
Returns the absolute value of the number.
<value>
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
<float>::format
string format(string fmt)
Returns a string of a formatted number according to a format string.
<float>
Methods in this pseudo-class can be executed on floating-point values.
Definition: Pseudo_QC_Float.dox.h:5
<float>::typeCode
int typeCode()
Returns Qore::NT_FLOAT.
<float>::sign
int sign()
Returns -1 if the number is negative, 0 if it is zero, or 1 if it is positive.
<float>::strp
bool strp()
Returns True because float values can be converted to strings.
<float>::val
bool val()
Returns True if the float is non-zero, False if zero.
<float>::intp
bool intp()
Returns True because float values can be converted to integers.