intl-sup
    Preparing search index...

    Function formatNumberWithoutDecimal

    • Format number based on current user locale, without decimals.

      Parameters

      • number: number

        Number to display, either as a float or an integer.

      • roundingMethod: RoudingMethod = "round"

        The rounding method, "round" will round to the nearest integer, "ceil" will round up and "floor" will round down. Default is "round".

      Returns string

      formatted number string.

      1.1.0

      Browser support: Chrome 24, Edge 12, Firefox 29, Opera 15, Safari 10, Node 0.23, Deno 1.8, Bun 1