Hacker News new | past | comments | ask | show | jobs | submit login

It may be strong typing, and there are just no ints. This is how JavaScript works: all numbers are f64.



Then what is: 1 << 33


Hmm... it's 2. It seems that the bitwise operators do indeed convert numbers into 32 bit integers (truncating any decimal parts) before applying their operation.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: