StrToNum
Converts string to number.
Syntax
StrToNum(stringRepresentingNumber)
Parameters
Parameter |
Type |
Description |
---|---|---|
stringRepresentingNumber |
string |
A string containing a valid representation of the number, for example, ‘1’, ‘002’, ‘123.456’ |
Return
Returns the number corresponding to the specified string.
Examples
Python
import nex
x = nex.StrToNum("003")
# x now is equal to 3
NexScript
x = StrToNum("003")
% x now is equal to 3