Double precision floating values in Python? Ask Question

Double precision floating values in Python? Ask Question

Are there data types with better precision than float?

ベストアンサー1

Python's built-in float type has double precision (it's a C double in CPython, a Java double in Jython). If you need more precision, get NumPy and use its numpy.float128.

おすすめ記事