Ephera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 months agoIEEE 754cdn.fosstodon.orgimagemessage-square9fedilinkarrow-up1604arrow-down16file-text
arrow-up1598arrow-down1imageIEEE 754cdn.fosstodon.orgEphera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 months agomessage-square9fedilinkfile-text
minus-squareramble81@lemm.eelinkfedilinkarrow-up13arrow-down2·6 months agoBecause at the end of the day everything gets simplified to a 1 or a 0. You could store a fraction as an “object” but at some point it needs to be turned into a number to work with. That’s where floating points come into play.
minus-squareKnock_Knock_Lemmy_In@lemmy.worldlinkfedilinkarrow-up8·6 months agoThere is already a pair of objects we can use to store fractions. The ratio of two integers. Irrational numbers is when floating points come into play.
Because at the end of the day everything gets simplified to a 1 or a 0. You could store a fraction as an “object” but at some point it needs to be turned into a number to work with. That’s where floating points come into play.
There is already a pair of objects we can use to store fractions. The ratio of two integers.
Irrational numbers is when floating points come into play.