首页 > lang > cfloat 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
CFloat
Float = CFloat ( Expression AS Variant ) AS Float
Float = CFlt ( Expression AS Variant ) AS Float

Converts an expression into a floating point number.

Be careful! The current localization is not used by this function. That means: If the expression is a string, the decimal separator in the expression MUST be ".", even if in the localization it is defined as "," like in German, French...

错误

消息说明
Type mismatch (6) Expression cannot be converted.

Example

PRINT CFloat("+3.1416")

3.1416

PRINT CFloat("1.0E+3")

1000

参见

Conversion Functions