@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function fpad

    • Formats the floating point number n as a string.

      The result has 4 digits after the decimal point and is left-padded with spaces to a width of 10.

      This function is primarily intended for debugging and logging, and is used by the toString() functions in this library

      Parameters

      • n: number

        the number to format

      Returns string

      n formatted as a string