𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 2 years agoFixedprogramming.devimagemessage-square9fedilinkarrow-up111arrow-down10
arrow-up111arrow-down1imageFixedprogramming.dev𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 2 years agomessage-square9fedilink
minus-squarelemmyvore@feddit.nllinkfedilinkEnglisharrow-up1·edit-21 year agoPlease don’t try to approximate. Use the decimal module to represent numbers and everything will work as expected and it has a ton of other features you didn’t know you needed. https://docs.python.org/3/library/decimal.html#module-decimal
Please don’t try to approximate. Use the decimal module to represent numbers and everything will work as expected and it has a ton of other features you didn’t know you needed.
https://docs.python.org/3/library/decimal.html#module-decimal