3 ms·
> if you get 0.2, the code is using rational numbers or a custom implementation IIRC, there are languages that use IEEE double precision but the way they handl
by dragonwriter 6y ago
> if you get 0.2, the code is using rational numbers or a custom implementation
IIRC, there are languages that use IEEE double precision but the way they handle default display presents this as 0.2 (basically, they use a display algorithm that displays the shortest decimal expression that has the same double precision representation.)