no IEEE 754-2008 equivalent.
Clamped occurs if the scale has been modified to fit the constraints of the decimal representation.
ConversionSyntax occurs when a string is converted to a decimal and does not have a valid syntax.
default precision for literals.
DivisionByZero occurs when division is attempted with a finite, non-zero dividend and a divisor with a value of zero.
DivisionImpossible occurs when the result of integer division would contain too many digits (i.e.
DivisionUndefined occurs when division is attempted with in which both the divided and divisor are zero.
GDA strictly adheres to the General Decimal Arithmetic Specification Version 1.70.
Go adheres to typical Go idioms.
Inexact occurs when the result of an operation (e.g.
InsufficientStorage occurs when the system doesn't have enough storage (i.e.
InvalidContext occurs when an invalid context was detected during an operation.
InvalidOperation occurs when:
- an operand to an operation is a signaling NaN - an attempt is made to add or subtract infinities of opposite signs - an attempt is made to multiply zero by an infinity of either sign - an attempt is made to divide an infinity by an infinity - the divisor for a remainder operation is zero - the dividend for a remainder operation is an infinity - either operand of the quantize operation is an infinity, or the result of a quantize operation would require greater precision than is available - the operand of the ln or the log10 operation is less than zero - the operand of the square-root operation has a sign of 1 and a non-zero coefficient - both operands of the power operation are zero, or if the left-hand operand is less than zero and the right-hand operand does not have an integral value or is an infinity
.
IsCanonical is true since Big decimals are always normalized.
largest allowed Context precision.
largest allowed scale.
smallest allowed Context precision.
smallest allowed scale.
Overflow occurs when the adjusted scale, after rounding, would be greater than MaxScale.
Radix is the base in which decimal arithmetic is performed.
Rounded occurs when the result of an operation is rounded, or if an Overflow/Underflow occurs.
Subnormal ocurs when the result of a conversion or operation is subnormal (i.e.
== IEEE 754-2008 roundTiesToAway.
== IEEE 754-2008 roundTiesToEven.
no IEEE 754-2008 equivalent.
== IEEE 754-2008 roundTowardNegative.
== IEEE 754-2008 roundTowardPositive.
== IEEE 754-2008 roundTowardZero.
Underflow occurs when the result is inexact and the adjusted scale would be smaller (more negative) than MinScale.
no precision, but may error.