File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,14 @@ display of your final results to the number of decimal digits you expect.
135135:func: `str ` usually suffices, and for finer control see the :meth: `str.format `
136136method's format specifiers in :ref: `formatstrings `.
137137
138+ For use cases which require exact decimal representation, try using the
139+ :mod: `decimal ` module which implements decimal arithmetic suitable for
140+ accounting applications and high-precision applications.
141+
142+ Another form of exact arithmetic is supported by the :mod: `fractions ` module
143+ which implements arithmetic based on rational numbers (so the numbers like
144+ 1/3 can be represented exactly).
145+
138146If you are a heavy user of floating point operations you should take a look
139147at the Numerical Python package and many other packages for mathematical and
140148statistical operations supplied by the SciPy project. See <http://scipy.org>.
You can’t perform that action at this time.
0 commit comments