3 ms·
Javacript doesn't have an unsigned int datatype. The numbers in the article were doubles.
by charcircuit 5y ago
Javacript doesn't have an unsigned int datatype. The numbers in the article were doubles.
- xxs 5y agoyou cant swap doubles like that though... b/c if any of them is a NaN or an infinity, it breaks down. It works for integers (and pointers)
- charcircuit 5y agoIt also breaks due to rounding even if you don't have NaN or Inf.