Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> - Where are decimals, to avoid things like `parseInt(0.00000051) === 5`?

I personally dislike decimals, I would prefer a full BigRational that is stored as a ratio of two BigInts (or as a continued fraction with BigInts coefficients.

Decimals solve the 0.1+0.1+0.1!=0.3 error but are still broken under division.



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

Search: