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

I generally agree, in other languages it suffices to just tell juniors "don't use floating point if you can avoid it". And integer types are less messy to reason with (just need to learn the 32-bit and 64-bit ranges).

But in your specific case (of JS/TS), _all_ the normal numeric variables are in IEEE 754 floating point...



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

Search: