Function toFixedFormat

  • Converts a number (or string) to a fixed-point format with specified precision.

    Returns

    The formatted number as a string.

    Parameters

    • x: string | number

      The number or string to be formatted.

    • n: number = 6

      The number of digits after the decimal point (default is 6).

    • rightTrimZero: boolean = true

      Flag to indicate if trailing zeros after the decimal point should be removed (default is true).

    Returns string

Generated using TypeDoc