2 ms·
Doh. You're right. And that's even why they call it the fraction, because it's the fractional component of that 1.XXX number between [1.0, 2.0). My brain fart
by ohazi 5y ago
Doh. You're right. And that's even why they call it the fraction, because it's the fractional component of that 1.XXX number between [1.0, 2.0).
My brain fart was forgetting how floats work, seeing that the integer-resolution range for both single and double precision floats was exactly the number of bits in the fraction + the sign bit and then pattern matching.
- dnautics 5y agoI think it would be interesting to explore a type where you nan-box integers, which is what I thought you might be talking about, and it would be fascinating if JS did that. Don't know if it's worth the space savings over a simple union type, tbh.