kravemir kravemir - 9 months ago 73
Python Question

Double precision floating values in Python?

Are there data types with better precision than float?

Answer Source

Decimal datatype

  • Unlike hardware based binary floating point, the decimal module has a user alterable precision (defaulting to 28 places) which can be as large as needed for a given problem.

If you are pressed by performance issuses, have a look at GMPY