Python中的浮点数的精度是多少?它总是双精度的,还是它的实现或特定的平台?它在CPython和PyPy上有区别吗?
发布于 2017-02-01 09:11:20
发布于 2017-02-01 09:11:15
import sys
sys.float_infosys.float_info(max=1.7976931348623157e+308,max_exp=1024,max_10_exp=308,min=2.2250738585072014e-308,min=-1021,min10exp=-307,dig=15,mant_dig=53,epsilon=2.220446049250313e-16,radix=2,rounds=1)
在此发现:https://docs.python.org/3/library/stdtypes.html#typesnumeric Sec 4.4
这对你有帮助吗?
https://stackoverflow.com/questions/41975576
复制相似问题