Takes a numeric string , str, containing only digits, with an optional leading plus or minus sign, and an optional trailing decimal fraction, and returns the number, or integer value that it represents. If the string does not contain a decimal point, it returns an integer.
makeNumber ( str As String ) As Any
Argument | Type | Description |
---|---|---|
str | String | A numeric string that contains only digits, an optional leading plus or minus sign, and an optional decimal point. |
Intent >makeNumber("12") --> 12
Intent >makeNumber("-12.2") --> -12.2