Re:WTFJS?
by godDLL on Saturday February 13, 2010 @12:16PM
(#1123194)
Could you please grace us with a code sample for all of these? I'm not intimately familiar with Haskell, Lisp or Ruby.
[ Parent
| on HN ]
You only get that result in python by importing the decimal library. The standard behavior in python is (.1 + .2 == .3) == False
However, your code example makes the excellent point that python has such a library available, whereas Javascript does not. At least, not as easily as an import.