strToFloat (Function) |
Top Previous Next |
This function converts a string to a FLOAT.
Note: This function works with DOUBLE, but can also work with FLOAT as described in the Floating-point math introductory section.
Input: str : STRING String to convert.
Returns: FLOAT The value of the string. If the string can not be parsed, 0 is returned.
Declaration: FUNCTION strToFloat : FLOAT;
Example: INCLUDE rtcu.inc |