Hacker News new | past | comments | ask | show | jobs | submit login

This is Java, not JavaScript. The exponents table was likely of integer type. Then it works.



How does that avoid the misrounding bug for 999,999B = 1000KB (wrong), 1MB correct?


D'oh, you're right.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: