kravemir kravemir - 11 months ago 92
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download