top | item 29592265

(no title)

pjam | 4 years ago

This. Sure, floating point numbers come with a footgun, but the title is so clickbaity, would it really hurt to name it: "What I wish I knew about floating numbers before relying on them?"

discuss

order

spicybright|4 years ago

I think it's common to just not be taught floating points need to be handled a lot differently than whole numbers, so the common experience is getting bit by it. I don't remember ever being taught that in my traditional schooling, personally.

This is a good link to send to people: https://floating-point-gui.de/

maxlybbert|4 years ago

I remember covering how floating point were stored, but I don’t remember going all that deep into how that affected arithmetic.