ToFloat
The ToFloat function attempts to convert its input to a floating point number.
Syntax
ToFloat ( value )
Remarks
The value parameter holds the value to be converted. If the value is a string, the value will be converted directly. For example, the string "5.68" will be converted to the floating point number 5.68. If the value is a date, it will be converted to the number of nanoseconds elapsed since midnight, January 1, 1990.
Examples
Example #1
In the following example, PTemp_TMn is the time of the minimum value for PTemp. This expression will return that timestamp as the number of nanoseconds since January 1, 1990.
ToFloat("Server:CR1000.Test.PTemp_TMn")
Example #2
In the following example, DateTimeIn is a string variable in a recognized date format. This expression returns that value as the number of nanoseconds since midnight, January 1, 1990 (e.g., if DateTimeIn is "Jan 01, 1990 01:01:01", the floating point number 3.661e12 is returned):
ToFloat(ToDate("Server:CR1000.Public.DateTimeIn"))