CSingle
Result = CSingle ( Expression AS Variant ) AS Single
将表达式转换为单精度浮点数
Single 。
Be careful! The current localization is not used by this function.
Errors
Message
|
Description
|
类型不匹配(6)
|
Expression cannot be converted.
|
Examples
PRINT CSingle("+3.1416")
PRINT CSingle("1.0E+3")
PRINT CSingle(Pi);; CFloat(Pi)
3.141592741013 3.14159265359
PRINT CSingle(1E50)
See also