Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nicoburns
on Nov 21, 2022
|
parent
|
context
|
favorite
| on:
Show HN: Buzz, strongly typed scripting language w...
It may be strong typing, and there are just no ints. This is how JavaScript works: all numbers are f64.
postalrat
on Nov 21, 2022
[–]
Then what is: 1 << 33
nicoburns
on Nov 21, 2022
|
parent
[–]
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: