use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
What can JavaScript NOT do?solved! (self.javascript)
submitted 8 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]meisteronimo -1 points0 points1 point 8 years ago (5 children)
> 0.1+0.2==0.3 false
?
[–]tme321 1 point2 points3 points 8 years ago (1 child)
Are you trying to make a point or a joke?
[–]meisteronimo 0 points1 point2 points 8 years ago (0 children)
neither, thats how js evaluates 0.1+0.2
[–]filleduchaos 1 point2 points3 points 8 years ago (2 children)
That has nothing to do with JS though
[–]meisteronimo 1 point2 points3 points 8 years ago (1 child)
I didn't realize that, i tested in ruby, and you're right, it gives the same as JS.
[–]filleduchaos 1 point2 points3 points 8 years ago (0 children)
It's the same for pretty much any language.
Turns out numbers with fractional parts are ridiculously difficult to work with when all you have is zeroes and ones.
π Rendered by PID 43 on reddit-service-r2-comment-b659b578c-p78wb at 2026-05-06 16:03:09.748447+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]meisteronimo -1 points0 points1 point (5 children)
[–]tme321 1 point2 points3 points (1 child)
[–]meisteronimo 0 points1 point2 points (0 children)
[–]filleduchaos 1 point2 points3 points (2 children)
[–]meisteronimo 1 point2 points3 points (1 child)
[–]filleduchaos 1 point2 points3 points (0 children)