numpy.float64 和python float数据,计算速度哪个更快?
发布网友
发布时间:2022-05-15 17:02
我来回答
共1个回答
热心网友
时间:2023-07-27 04:45
>>> numpy.float64(5.9975).hex()
'0x1.7fd70a3d70a3dp+2'
>>> (5.9975).hex()
'0x1.7fd70a3d70a3dp+2'
They are the same number. What differs is their representation; the Python native type uses a "sane" representation, and the NumPy type uses an accurate representation.