𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 1 year agoFixedprogramming.devimagemessage-square2fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageFixedprogramming.dev𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square2fedilink
minus-squarealp@sh.itjust.workslinkfedilinkarrow-up0·1 year 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-up0·1 year 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.