Raku interprets decimal literals (like 0.1) as limited-precision rational numbers (Rats) [0-1].
I think this is a pretty user-friendly compromise.
I think this is a pretty user-friendly compromise.
By default, when it not longer fits, it will convert to floating point (called Num in Raku). But this behaviour can be set: another alternative is for the numerator and denominator both being big integers. This gives you infinite precision rational numbers, at the expense of potentially needing infinite CPU and/or RAM.