Constructs a Decimal data type using the specified _value
Implementation of assignnment operator. It supports the same semantics as the constructor.
Implementation of binary and assignment operators (+, -, *, /, %, ^^).
Implementation of cast operator. Supported casts: integral, floating point, _decimal, char, bool Exceptions:
Data type | Invalid | Overflow | Underflow | Inexact |
---|---|---|---|---|
integral | ✓ | ✓ | ✓ | ✓ |
char | ✓ | ✓ | ✓ | ✓ |
float | ✓ | ✓ | ✓ | |
bool | ||||
decimal | ✓ | ✓ | ✓ |
Implementation of comparison operator. Supported types : _decimal, floating point, integral, char
this | Value | Result | Invalid |
---|---|---|---|
NaN | any | NaN | ✓ |
any | NaN | NaN | ✓ |
any | any | ±1.0, 0.0 |
Implementation of == operator. This operation is silent, no exceptions are thrown. Supported types : _decimal, floating point, integral, char
Implementation of binary and assignment operators (+, -, *, /, %, ^^).
Implementation of +/- unary operators. These operations are silent, no exceptions are thrown
Implementation of ++/-- unary operators. Exceptions:
Value | ++/-- | Invalid | Overflow | Inexact |
---|---|---|---|---|
NaN | NaN | ✓ | ||
±∞ | ±∞ | |||
any | any | ✓ | ✓ |
Returns a unique hash of the _decimal value suitable for use in a hash table. Notes: This function is not intended for direct use, it's provided as support for associative arrays.
Converts current value to string, passing it to the given sink using the specified format.
Converts current value to string according to the format specification
Converts current value to string in floating point or scientific notation,which one is shorter.
Converts current value to string according to the format specification
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
Undocumented in source.
always 10 for _decimal data types
Decimal floating-point computer numbering format that occupies 4, 8 or 16 bytes in computer memory.