#include <YCPFloat.h>
Inheritance diagram for YCPFloatRep:
Public Member Functions | |
double | value () const |
YCPOrder | compare (const YCPFloat &v) const |
string | toString () const |
std::ostream & | toStream (std::ostream &str) const |
YCPValueType | valuetype () const |
Protected Member Functions | |
YCPFloatRep (double v) | |
YCPFloatRep (const char *r) | |
Private Attributes | |
double | v |
YCP Syntax: Like in C. The decimal point is obligatory.
1.0, -0.6, 0.9e-16, ...
Constructor & Destructor Documentation
|
Creates a new YCPFloatRep object with the value given in v. |
|
Creates a new YCPFloatRep object from its ASCII representation
|
|
Compares two YCPFloats for equality, greaterness or smallerness.
|
|
Output value as bytecode to stream Implements YCPElementRep. |
|
Returns an ASCII representation of this value. Note that this must alway contain either a decimal point, or an exponent symbol in order to keep up the axiom, that the syntactical representation of a YCP value uniquely describes its type. Examples: 0.0, 1e10, -17.0e8 Implements YCPElementRep. |
|
Returns the value of this object in form of a C value of type double. |
|
Returns YT_FLOAT. See YCPValueRep::type. Implements YCPValueRep. |
|
|