Variable Number

Number: {
    format(fmt, val, rounding, localizedSymbols?): string;
    isRoundingRequired(val, fmt, localizedSymbols?): boolean;
    rounding(valStr, ri, rounding, minus): string;
    setScale(val, scale, rounding): BigDecimal;
    unformat(fmt, val, ignoreLocale, localizedSymbols?): {
        divscale: number;
        raw: string;
    };
} = ...

Type declaration

  • format:function
    • Parameters

      • fmt: string
      • val: string
      • rounding: number
      • Optional localizedSymbols: LocalizedSymbols

      Returns string

  • isRoundingRequired:function
    • Parameters

      • val: string | number
      • fmt: string
      • Optional localizedSymbols: LocalizedSymbols

      Returns boolean

  • rounding:function
    • Parameters

      • valStr: string
      • ri: number
      • rounding: number
      • minus: boolean

      Returns string

  • setScale:function
  • unformat:function
    • Parameters

      • fmt: string
      • val: string
      • ignoreLocale: boolean
      • Optional localizedSymbols: LocalizedSymbols

      Returns {
          divscale: number;
          raw: string;
      }

      • divscale: number
      • raw: string