Bridge

DecimalConfig Members

The DecimalConfig type exposes the following members.

Fields


  Name Description
Public field Crypto
The value that determines whether cryptographically-secure pseudo-random number generation is used. Default value: false
Public field Errors
The value that determines whether Decimal Errors are thrown. If errors is false, this library will not throw errors.
Public field Format
The format object configures the format of the string returned by the toFormat method.
Public field MaxE
The positive exponent limit, i.e. the exponent value above which overflow to Infinity occurs. Default value: 9e15
Public field MinE
The negative exponent limit, i.e. the exponent value below which underflow to zero occurs. Default value: -9e15
Public field Modulo
The modulo mode used when calculating the modulus: a mod n.
Public field Precision
Default value: 20 The maximum number of significant digits of the result of a calculation or base conversion.
Public field 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.
Public field ToExpNeg
The negative exponent value at and below which toString returns exponential notation. Default value: -7
Public field ToExpPos
The positive exponent value at and above which toString returns exponential notation. Default value: 20