Purpose: Converts value to a real number. The value parameter can be of any type except the object type. If value is a string and the position parameter is given, then position must denote a value to which an integer value can be assigned that is the last position in the value string that has been scanned successfully for a real number. If the string value cannot be converted, 0 is assigned to the position.
Return Values: Returns null if value is null or if value cannot be converted to an real value. Returns value if value is a real number. If value is of type integer, the corresponding real value is returned. If value is of type Boolean, 0.0 is returned for a false value and 1.0 is returned for a true value.
See Also: integer().
© 1996-2023 H.E.I. All Rights Reserved.