Function intoInteger

  • Creates an input control converter that converts string values to integer ones.

    Parses the input string using parseInt() function. And floors numbers assigned to converted control.

    Can be applied to input controls with string values only.

    Reports invalid numbers with invalid, NaN, and notInteger message codes.

    Parameters

    • Optional radix: number

      An integer in the range 2 through 36 specifying the base to use for representing numeric values. 10 by default.

    Returns InConverter<string, number>

  • Input control converter that converts string values to integer ones with radix of 10.

    Parses the input string using parseInt() function. And floors numbers assigned to converted control.

    Can be applied to input controls with string values only.

    Reports invalid numbers with invalid, NaN, and notInteger message codes.

    Parameters

    Returns InConverter.Conversion<string, number>

Generated using TypeDoc