Summary
Converts a string to an integer.
Description
Parses a string argument and returns an integer of the specified radix or base.
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name | Type | Required | Description |
---|---|---|---|
str | string | yes | The value to parse |
radix | number | no | An integer between 2 and 36 that represents the radix (the base in mathematical numeral systems) of the above mentioned string |
Return
DetailsExampleSchema
Name | Type | Description |
---|---|---|
result | number | Integer number parsed from the given string. NaN if first character cannot be converted to a number |