Number

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

NumValue := Number(Value)

Return Value

Type: Integer or Float

This function returns the result of converting Value to a pure integer or floating-point number, or Value itself if it is already an Integer or Float value.

Remarks

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

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

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

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