Expression Language Reference
    Preparing search index...

    Interface INumberFunctions

    interface INumberFunctions {
        formatter: NumberFormat;
        parse: (x: string) => number;
        parseStrict: (inp: string) => number;
        format(x: any): string;
    }
    Index

    Properties

    Methods

    Properties

    formatter: NumberFormat

    Intl.NumberFormat

    parse: (x: string) => number

    Type declaration

      • (x: string): number
      • Parse a string as a number. this function will handle currency symbols and comma groupings

        Parameters

        • x: string

          String value

        Returns number

        a number value parsed from this string

    parseStrict: (inp: string) => number

    Type declaration

      • (inp: string): number
      • Parse input value as a number raise error if it is null blank or undefined

        Parameters

        • inp: string

          a string containing a numeric value

        Returns number

        a number

    Methods

    • Format numeric value in US Number Format

      Parameters

      • x: any

        number or numeric value

      Returns string

      A US Standard formatted number