orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 2 months agoFloating point arithmeticseviltoast.orgimagemessage-square41fedilinkarrow-up1735arrow-down17
arrow-up1728arrow-down1imageFloating point arithmeticseviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 2 months agomessage-square41fedilink
minus-squareFrezik@lemmy.blahaj.zonelinkfedilinkarrow-up11·2 months agoYou can also have a type which does it. Raku has a Rational type for this.
minus-squareKacarott@aussie.zonelinkfedilinkarrow-up4·2 months agoPython has the Fraction type, and there are many more
minus-squaredontsayaword@piefed.sociallinkfedilinkEnglisharrow-up5·2 months agoPart of my first programming courses in the 90s in C were creating a native fraction type.
You can also have a type which does it. Raku has a Rational type for this.
Python has the Fraction type, and there are many more
Part of my first programming courses in the 90s in C were creating a native fraction type.