Definition at line 63 of file Numeric.h.
◆ Decimal() [1/5]
Initializes instance from compound components.
◆ Decimal() [2/5]
◆ Decimal() [3/5]
Converts from Double value using default conversion precision.
◆ Decimal() [4/5]
Converts Double value to decimal.
- Parameters
-
value | double precision floating-point value. |
precision | defines conversion precision. |
◆ Decimal() [5/5]
Initializes as copy of given value.
◆ exponent() [1/2]
Returns exponent part of decimal.
Definition at line 214 of file Numeric.h.
◆ exponent() [2/2]
Updates exponent part of decimal.
Definition at line 221 of file Numeric.h.
◆ mantissa() [1/2]
Returns mantissa part of decimal.
Definition at line 199 of file Numeric.h.
◆ mantissa() [2/2]
Updates mantissa part of decimal.
Definition at line 206 of file Numeric.h.
◆ operator Double()
Casts to whole floating point as regular value is casted to a smaller precision.
- Exceptions
-
domain_error | exception on failure. |
Definition at line 276 of file Numeric.h.
◆ operator Int32()
Casts to whole integer number as regular floating point value is casted.
- Exceptions
-
domain_error | exception on failure. |
Definition at line 228 of file Numeric.h.
◆ operator Int64()
Casts to whole integer number as regular floating point value is casted.
- Exceptions
-
domain_error | exception on failure. |
Definition at line 252 of file Numeric.h.
◆ operator UInt32()
Casts to whole integer number as regular floating point value is casted.
- Exceptions
-
domain_error | exception on failure. |
Definition at line 240 of file Numeric.h.
◆ operator UInt64()
operator UInt64 |
( |
| ) |
const |
|
inline |
Casts to whole integer number as regular floating point value is casted.
- Exceptions
-
domain_error | exception on failure. |
Definition at line 264 of file Numeric.h.
◆ operator!=()
bool operator!= |
( |
const Decimal & | | ) |
const |
◆ operator=()
Reinitializes instance from another one.
◆ operator==()
bool operator== |
( |
const Decimal & | | ) |
const |
◆ parse()
Decimal parse |
( |
const char * | buffer, |
|
|
size_t | bufferSize ) |
|
static |
Parses decimal from string presentation.
- Exceptions
-
std::exception | on failure. |
◆ toNumber() [1/5]
bool toNumber |
( |
Double & | | ) |
const |
Casts to floating point number.
- Returns
- false if conversion fails.
◆ toNumber() [2/5]
bool toNumber |
( |
Int32 & | | ) |
const |
Casts to whole integer number as regular floating point value is casted.
- Returns
- false if conversion fails.
◆ toNumber() [3/5]
bool toNumber |
( |
Int64 & | | ) |
const |
Casts to whole integer number as regular floating point value is casted.
- Returns
- false if conversion fails.
◆ toNumber() [4/5]
bool toNumber |
( |
UInt32 & | | ) |
const |
Casts to whole integer number as regular floating point value is casted.
- Returns
- false if conversion fails.
◆ toNumber() [5/5]
bool toNumber |
( |
UInt64 & | | ) |
const |
Casts to whole integer number as regular floating point value is casted.
- Returns
- false if conversion fails.
◆ toString() [1/2]
std::string toString |
( |
| ) |
const |
|
inline |
Returns text presentation of decimal.
Definition at line 289 of file Numeric.h.
◆ toString() [2/2]
void toString |
( |
std::string & | | ) |
const |
Appends text presentation to given string.
◆ tryParse()
bool tryParse |
( |
const char * | buffer, |
|
|
size_t | bufferSize, |
|
|
Decimal & | ) |
|
static |
Attempts to parse decimal value from its string/text presentation.
- Returns
- false on parsing failure.