目录

float()

描述

将一个值转换为float型数值。

语法

float(x)

参数

X:任何类型的值

返回

float型数

注释

见float中关于浮点数的精度和限制的详细信息。