parseInt

[ Function ]

public static parseInt(
    input: string,
): number;

Skips non-numeric characters and passes the others to parseInt. MS browsers add left-to-right marker to the output.

Parameter

Name

Type

Description

input

string

Input value

Return value

Type

Description

number

Result of parseInt after all non-numeric characters have been removed from the input value.

parseInt 1:

Available from version 1.10.1336.10