These represent machine-level double precision
floating point numbers. You are at the mercy of the underlying machine
architecture (and C or Java implementation) for the accepted range and
handling of overflow. Python does not support single-precision
floating point numbers; the savings in processor and memory usage that
are usually the reason for using these are dwarfed by the overhead of
using objects in Python, so there is no reason to complicate the
language with two kinds of floating point numbers.
“默认精度”意味着您可以选择不同的精度。你不能。你知道吗
从https://docs.python.org/3/reference/datamodel.html:
不能保证您甚至拥有ieee754浮点值。你知道吗
相关问题 更多 >
编程相关推荐