Shop Learn P1 Docs P2 Docs
Genuine Decimal Mathematics — Parallax Forums

Genuine Decimal Mathematics

if floating point numbers are letting you down because of the gaps and rounding errors try my decimal numbers class decimal.py at https://github.com/rhubarbdog/decimal-numbers . There is a version for microbit called microbit.py follow the instructions in the README.md.
See example code decimal_math.py and pi.py for python 3 and other boards and for microbit it's microbit_pi.py microbit_root.py

Sign In or Register to comment.