Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
IanCal
2y ago
0 comments
Save
Share
I'll clarify, as yes it's possible, but not using the built in conversions from strings to floats. That is, the following is not true for all x: Number(String(x)) == x
0 comments
1 comments · 1 top-level
top
newest
oldest
UncleMeat
2y ago
NaNs also cause problems here, since it is not equal to itself.
j
/
k
navigate · click thread line to collapse