@jiminp/tooltool
    Preparing search index...

    Function formatFixedFloat

    • Formats an integer as a fixed-point decimal string.

      It treats the input integer n as if it were multiplied by 10**fractions. Useful for formatting currency or other fixed-point values stored as integers.

      Parameters

      • n: number

        The integer value to format.

      • fractions: number

        The number of decimal places.

      Returns string

      A string representation of the fixed-point number.

      formatFixedFloat(1234, 2); // "12.34"
      formatFixedFloat(100, 2); // "1.00"