About Unpreciseness of Floats
Float type is implemented according to the IEEE 756 Standard established in the ancient 1985, and has preciseness flaws because of how floats are operated by CPU. For example:
1 2 |
|
For financial or other operations where preciseness matters, use Decimal
instead:
1 2 3 |
|
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You