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