Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function numberFormat

    • Rounds to a number of decimals and writes it without trailing zeros or floating point noise, so 0.30000000000000004 becomes 0.3 and 1.50 becomes 1.5.

      Parameters

      • number: number

        Number to write.

      • decimals: number

        Decimals to keep.

      Returns string