Float

Converts a numeric string or integer value to a floating-point number.

FltValue := Float(Value)

Return Value

Type: Float

This function returns the result of converting Value to a pure floating-point number (having the type name "Float"), or Value itself if it is already the correct type.

Remarks

If the value cannot be converted, a TypeError is thrown.

To determine if a value can be converted to a floating-point number, use the IsNumber function.

Float is actually a class, but can be called as a function. Value is Float can be used to check whether a value is a pure floating-point number.

Type, Integer, Number, String, Values, Expressions, Is functions