Type Alias NumberFormattingOptions

NumberFormattingOptions: {
    avoidExponentsInRange: undefined | null | [negativeExponent: number, positiveExponent: number];
    beginExponentMarker: LatexString;
    beginRepeatingDigits: LatexString;
    decimalMarker: LatexString;
    endExponentMarker: LatexString;
    endRepeatingDigits: LatexString;
    exponentProduct: LatexString;
    groupSeparator: LatexString;
    imaginaryUnit: LatexString;
    negativeInfinity: LatexString;
    notANumber: LatexString;
    notation: "engineering" | "auto" | "scientific";
    positiveInfinity: LatexString;
    precision: number;
    truncationMarker: LatexString;
}

Type declaration

  • avoidExponentsInRange: undefined | null | [negativeExponent: number, positiveExponent: number]
  • beginExponentMarker: LatexString
  • beginRepeatingDigits: LatexString
  • decimalMarker: LatexString

    A string representing the decimal marker, the string separating the whole portion of a number from the fractional portion, i.e. the '.' in '3.1415'.

    Some countries use a comma rather than a dot. In this case it is recommended to use "{,}" as the marker: the surrounding brackets ensure there is no additional gap after the comma.

    Default: "."

  • endExponentMarker: LatexString
  • endRepeatingDigits: LatexString
  • exponentProduct: LatexString
  • groupSeparator: LatexString

    A string representing the separator between groups of digits, used to improve readability of numbers with lots of digits.

    If you change it to another value, be aware that this may lead to unexpected results. For example, if changing it to , the expression \operatorname{Hypot}(1,2) will parse as ["Hypot", 1.2] rather than ["Hypot", 1, 2].

    Default: "\\," (thin space, 3/18mu) (Resolution 7 of the 1948 CGPM)

  • imaginaryUnit: LatexString
  • negativeInfinity: LatexString
  • notANumber: LatexString
  • notation: "engineering" | "auto" | "scientific"
  • positiveInfinity: LatexString
  • precision: number
  • truncationMarker: LatexString