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, an exception is thrown.

To determine if a value can be converted to a floating-point number, use Value is 'number'.

Related

Type, Integer, String, Values, Expressions, Value is Type