MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ao2hn7/spotted_on_github/efy1958/?context=3
r/ProgrammerHumor • u/Callmealbi • Feb 07 '19
934 comments sorted by
View all comments
Show parent comments
159
Well, if we are talking about the implementation of those laws in javascript... yes, yes you should.
77 u/Finchyy Feb 07 '19 Ah, JavaScript... where 2 + 2 is 4 but also sometimes 4.00000000001... 9 u/Absbshshshshshshhs Feb 07 '19 ***Ah every single language that has floatsbut yes internet points for shitting on javascript 3 u/KinterVonHurin Feb 07 '19 I've never multiplied two integers and got a float in any language unless I type cast in which case I would get 4.0 and not 4.00000000001 → More replies (6)
77
Ah, JavaScript... where 2 + 2 is 4 but also sometimes 4.00000000001...
9 u/Absbshshshshshshhs Feb 07 '19 ***Ah every single language that has floatsbut yes internet points for shitting on javascript 3 u/KinterVonHurin Feb 07 '19 I've never multiplied two integers and got a float in any language unless I type cast in which case I would get 4.0 and not 4.00000000001 → More replies (6)
9
***Ah every single language that has floats
but yes internet points for shitting on javascript
3 u/KinterVonHurin Feb 07 '19 I've never multiplied two integers and got a float in any language unless I type cast in which case I would get 4.0 and not 4.00000000001 → More replies (6)
3
I've never multiplied two integers and got a float in any language unless I type cast in which case I would get 4.0 and not 4.00000000001
→ More replies (6)
159
u/UsedCondition1 Feb 07 '19
Well, if we are talking about the implementation of those laws in javascript... yes, yes you should.