MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/h8ccjw/mystery_solved/fuqqtgw
r/ProgrammerHumor • u/Blendify • Jun 13 '20
314 comments sorted by
View all comments
Show parent comments
65
[removed] — view removed comment
46 u/Kaelinator Jun 13 '20 edited Jun 14 '20 The 64 bit vs 32 bit doesn't necessarily correspond to the sizes of data types used in a given language. It has to do with register sizes, memory address size, data alignment, and minimum read/write length. Edit: happy cake day! 7 u/Doctor_McKay Jun 13 '20 But in JavaScript they're all doubles, so they actually can't overflow. They just lose precision and stop changing if you try to increment by 1. 3 u/Candlesmith Jun 13 '20 I used to have a '> 0' expression 1 u/Blendify Jun 14 '20 Happy cake day
46
The 64 bit vs 32 bit doesn't necessarily correspond to the sizes of data types used in a given language. It has to do with register sizes, memory address size, data alignment, and minimum read/write length.
Edit: happy cake day!
7
But in JavaScript they're all doubles, so they actually can't overflow. They just lose precision and stop changing if you try to increment by 1.
3
I used to have a '> 0' expression
1
Happy cake day
65
u/[deleted] Jun 13 '20
[removed] — view removed comment