𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 2 years agoFixedprogramming.devimagemessage-square2fedilinkarrow-up14arrow-down10
arrow-up14arrow-down1imageFixedprogramming.dev𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 2 years agomessage-square2fedilink
minus-squarealp@sh.itjust.workslinkfedilinkarrow-up0·2 years agoI know this is a humor subreddit and this is a joke, but this problem wasted a huge week of mine since I was dealing with absurdly small numbers in my simulations. Use fsum from math library in Python to solve this people.
minus-squareDazawassa@programming.devlinkfedilinkEnglisharrow-up1·2 years agoOne of my lecturers mentioned a way they would get around this was to store all values as ints and then append a . two character before the final one.
I know this is a humor subreddit and this is a joke, but this problem wasted a huge week of mine since I was dealing with absurdly small numbers in my simulations. Use fsum from math library in Python to solve this people.
One of my lecturers mentioned a way they would get around this was to store all values as ints and then append a . two character before the final one.