Hacker News new | ask | show | jobs
by dagw 2490 days ago
This approach is used specifically because of correctness. Doing things the 'obvious' way with round(3) or truncation introduces precision problems in corner cases.