Num
- Last UpdatedOct 29, 2026
- 1 minute read
Converts a string into a float.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
Num |
String |
Synchronous |
Yes |
Supported |
Supported |
Supported (see Notes below) |
Supported |
Supported |
Syntax
Num(strValue)
strValue
The number of characters to be converted into float format.
Note: The float string cannot use characters other than the numbers (0..9) and a decimal point (.), or the function returns the value 0.0.
Returned value
Returns the number (formerly in a string format) in float format.
Notes
When this function is used in a project running on IoT View, it supports only single-byte Unicode characters (up to U+007F). Multi-byte Unicode characters are not supported at this time.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
Num("321654.987") // Returned value = 321654.987 |
|
Tag |
Num("5.6589626246") // Returned value = 5.6589626246 |