|
Xpace
|
A floatimg-point number with explicit mantissa and decimals TODO: normalize. More...
#include <decimalfloat.h>
Public Member Functions | |
| DecimalFloat (const String8 &str, uint precision=~0) | |
| DecimalFloat (const String16 &str, uint precision=~0) | |
| DecimalFloat (const String &str, uint precision=~0) | |
| DecimalFloat (int64 mantissa=0, int decimals=0) | |
================================================================================================================== More... | |
| DecimalFloat (double val) | |
| operator double () const | |
| int64 | getMantissa () const |
| int | getDecimals () const |
| int | compare (const DecimalFloat &rhs) const |
| bool | operator== (const DecimalFloat &rhs) const |
| bool | operator!= (const DecimalFloat &rhs) const |
| bool | operator< (const DecimalFloat &rhs) const |
| bool | operator<= (const DecimalFloat &rhs) const |
| bool | operator> (const DecimalFloat &rhs) const |
| bool | operator>= (const DecimalFloat &rhs) const |
| template<typename STR > | |
| bool | toRawString (STR *str, typename STR::charType decimalChar= '.') const |
| String | toString (utf16_t decimalChar= '.') const |
A floatimg-point number with explicit mantissa and decimals TODO: normalize.
Definition at line 33 of file decimalfloat.h.
Definition at line 159 of file decimalfloat.h.
Referenced by DecimalFloat(), operator<(), and toString().
Definition at line 169 of file decimalfloat.h.
References DecimalFloat().
Definition at line 179 of file decimalfloat.h.
References DecimalFloat(), Xpace::String::getLength(), toRawString(), and Xpace::String::toUtf16().
|
inline |
Definition at line 150 of file decimalfloat.h.
References DecimalFloat().
|
inline |
Definition at line 298 of file decimalfloat.h.
References DecimalFloat(), len, and Xpace::sprintf_s().
|
inline |
Definition at line 308 of file decimalfloat.h.
References compare(), and Xpace::pow10_64().
|
inline |
Definition at line 58 of file decimalfloat.h.
References getDecimals().
|
inline |
|
inline |
Definition at line 316 of file decimalfloat.h.
References Xpace::pow10_64().
Referenced by getDecimals(), operator double(), and operator<().
|
inline |
Definition at line 339 of file decimalfloat.h.
References Xpace::pow10_64().
|
inline |
Definition at line 351 of file decimalfloat.h.
|
inline |
Definition at line 81 of file decimalfloat.h.
References Xpace::_i64toa_s(), Xpace::_i64tow_s(), compare(), DecimalFloat(), len, toRawString(), and toString().
| bool Xpace::DecimalFloat::operator<= | ( | const DecimalFloat & | rhs | ) | const |
| bool Xpace::DecimalFloat::operator> | ( | const DecimalFloat & | rhs | ) | const |
| bool Xpace::DecimalFloat::operator>= | ( | const DecimalFloat & | rhs | ) | const |
|
inline |
Definition at line 189 of file decimalfloat.h.
References len, and toString().
Referenced by DecimalFloat(), operator<(), and toString().
Definition at line 227 of file decimalfloat.h.
References Xpace::_atoi64(), Xpace::_wtoi64(), Xpace::RawString< CH >::data, DecimalFloat(), Xpace::INVALID(), len, Xpace::RawString< CH >::length, and toRawString().
Referenced by operator<(), and toRawString().