orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 7 days agoFloating point arithmeticseviltoast.orgimagemessage-square44linkfedilinkarrow-up1773arrow-down15
arrow-up1768arrow-down1imageFloating point arithmeticseviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 7 days agomessage-square44linkfedilink
minus-squareFrezik@lemmy.blahaj.zonelinkfedilinkarrow-up11·7 days agoYou can also have a type which does it. Raku has a Rational type for this.
minus-squaredontsayaword@piefed.sociallinkfedilinkEnglisharrow-up4·7 days agoPart of my first programming courses in the 90s in C were creating a native fraction type.
minus-squareKacarott@aussie.zonelinkfedilinkarrow-up3·7 days 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