Converts a string into a float.

Function Group Execution Windows Embedded Thin Client
Num String Synchronous Supported Supported Supported


Num( strValue )
The number of characters to be converted into float format.

Returned value

Returns the number (formerly in a string format) in float format.


Tag Name Expression
Tag Num( "321654.987" ) // Returned value = 321654.987
Tag Num( "5.6589626246" ) // Returned value = 5.6589626246
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.