内置float
和有numpy.float32
什么区别?
例
a = 58682.7578125
print type(a)
print a
print type(numpy.float32(a))
print numpy.float32(a)
Run Code Online (Sandbox Code Playgroud)
输出:
<type 'float'>
58682.7578125
<type 'numpy.float32'>
58682.8
Run Code Online (Sandbox Code Playgroud)
我在这里发现的numpy.float32
是:
float32单精度浮点数:符号位,8位指数,23位尾数
没有找到内置float
格式的内容.