Variable DEFAULT_CONFIGConst

DEFAULT_CONFIG: {
    roundingMode: ROUND_HALF_UP;
    decimalPlaces: 0;
    maxDecimalPlaces: 20;
    significantDigits: 1;
    trailingZeros: true;
    toFormat: {
        format: {
            groupSize: 3;
            groupSeparator: ",";
            decimalSeparator: ".";
        };
    };
} = ...

Default configuration options for the Fraction class.

Type declaration

  • Readonly roundingMode: ROUND_HALF_UP
  • Readonly decimalPlaces: 0
  • Readonly maxDecimalPlaces: 20
  • Readonly significantDigits: 1
  • Readonly trailingZeros: true
  • Readonly toFormat: {
        format: {
            groupSize: 3;
            groupSeparator: ",";
            decimalSeparator: ".";
        };
    }
    • Readonly format: {
          groupSize: 3;
          groupSeparator: ",";
          decimalSeparator: ".";
      }
      • Readonly groupSize: 3
      • Readonly groupSeparator: ","
      • Readonly decimalSeparator: "."

See

Config

Generated using TypeDoc