Re:0.30000000000000004
by tim333 on Monday December 02, 2019 @09:01PM
(#21689266)
When I was reading about this I thought why don't the print functions just by default round to the nearest 10 decimal places or similar so 0.30000000000000004 prints as 0.3 unless you specify you don't want that. And I wrote a function in javascript to round like that though it was surprisingly tricky and messy to do so.
[ Parent
| on HN ]
There are no comments on this comment yet.