𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 1 year agoFixedprogramming.devimagemessage-square9fedilinkarrow-up18arrow-down10
arrow-up18arrow-down1imageFixedprogramming.dev𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 1 year 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