2 ms·
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 reaso
by hnfong 3y ago
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...