orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 20 小时前Floating point arithmeticseviltoast.orgimagemessage-square44fedilinkarrow-up1695arrow-down14
arrow-up1691arrow-down1imageFloating point arithmeticseviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 20 小时前message-square44fedilink
minus-squareFrezik@lemmy.blahaj.zonelinkfedilinkarrow-up11·19 小时前You can also have a type which does it. Raku has a Rational type for this.
minus-squareKacarott@aussie.zonelinkfedilinkarrow-up3·12 小时前Python has the Fraction type, and there are many more
minus-squaredontsayaword@piefed.sociallinkfedilinkEnglisharrow-up4·18 小时前Part 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.