CSingle

Result = CSingle ( Expression AS Variant ) AS Single

Converts an expression into a Single floating point number.

Be careful! The current localization is not used by this function.

Errors

Message Description
Type mismatch (6) Expression cannot be converted.

Examples

PRINT CSingle("+3.1416")
3.1416

PRINT CSingle("1.0E+3")
1000

PRINT CSingle(Pi);; CFloat(Pi)
3.141592741013 3.14159265359

PRINT CSingle(1E50)
Overflow

See also