The rounding mode to use when rounding the Fraction. It only apply to methods that may incur rounding(irrational methods), or converting to a or number/string representation.
The number of decimal places to round to. It only apply to methods that may incur rounding(irrational methods), or converting to a or number/string representation.
The maximum number of decimal places preserved in the Fraction, it only apply to methods that incur rounding(irrational method).
The number of significant digits to preserve when calling the Fraction..toPrecision method.
Determines whether trailing zeros are preserved when converting the Fraction to a string representation.
Optional
toOptional configuration for the Fraction.toFixed method.
Optional
decimalThe number of decimal places to round to.
Optional
roundingThe rounding mode to be applied.
Optional
trailingDetermines whether trailing zeros are preserved.
Optional
toOptional configuration for the Fraction.toPrecision method.
Optional
significantThe number of significant digits to preserve when using the toPrecision() method.
Optional
roundingThe rounding mode.
Optional
toOptional configuration for the toExponential() method.
Optional
decimalThe number of decimal places to round to when using the toExponential() method.
Optional
roundingThe rounding mode to be applied.
Optional
trailingDetermines whether trailing zeros are preserved when using the toExponential() method.
Optional
toOptional configuration for the toFormat() method.
Optional
decimalThe number of decimal places to round to when using the toFormat() method.
Optional
roundingThe rounding mode to be applied.
Optional
trailingDetermines whether trailing zeros are preserved.
Optional
format?: { Formatting options for the Fraction.toFormat method.
Optional
groupThe grouping size of the integer part, default to 3
.
Optional
groupThe grouping separator of the integer part, default to ,
.
Optional
decimalThe decimal separator, default to .
.
Generated using TypeDoc
Configuration options for the Fraction class.