orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 1 day agoFloating point arithmeticseviltoast.orgimagemessage-square44linkfedilinkarrow-up1741arrow-down15
arrow-up1736arrow-down1imageFloating point arithmeticseviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 1 day agomessage-square44linkfedilink
minus-squareFrezik@lemmy.blahaj.zonelinkfedilinkarrow-up11·1 day agoYou can also have a type which does it. Raku has a Rational type for this.
minus-squareKacarott@aussie.zonelinkfedilinkarrow-up3·22 hours agoPython has the Fraction type, and there are many more
minus-squaredontsayaword@piefed.sociallinkfedilinkEnglisharrow-up4·1 day 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.