DecimalConfig Members
The DecimalConfig type exposes the following members.
Fields
Name | Description | |
---|---|---|
![]() |
Crypto |
The value that determines whether cryptographically-secure pseudo-random number generation is used. Default value: false
|
![]() |
Errors |
The value that determines whether Decimal Errors are thrown. If errors is false, this library will not throw errors.
|
![]() |
Format |
The format object configures the format of the string returned by the toFormat method.
|
![]() |
MaxE |
The positive exponent limit, i.e. the exponent value above which overflow to Infinity occurs. Default value: 9e15
|
![]() |
MinE |
The negative exponent limit, i.e. the exponent value below which underflow to zero occurs. Default value: -9e15
|
![]() |
Modulo |
The modulo mode used when calculating the modulus: a mod n.
|
![]() |
Precision |
Default value: 20
The maximum number of significant digits of the result of a calculation or base conversion.
|
![]() |
Rounding |
The default rounding mode used when rounding the result of a calculation or base conversion to precision significant digits, and when rounding the return value of the round, toDecimalPlaces, toExponential, toFixed, toFormat, toNearest, toPrecision and toSignificantDigits methods.
|
![]() |
ToExpNeg |
The negative exponent value at and below which toString returns exponential notation. Default value: -7
|
![]() |
ToExpPos |
The positive exponent value at and above which toString returns exponential notation. Default value: 20
|