Skip to content

Instantly share code, notes, and snippets.

@smith
Created April 8, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/474cf97657bfef390ed067061cf1b678 to your computer and use it in GitHub Desktop.
Save smith/474cf97657bfef390ed067061cf1b678 to your computer and use it in GitHub Desktop.
ieee 754 lol
nathansmith@opstop ~> pry
[1] pry(main)> 0.1 + 0.2
=> 0.30000000000000004
[2] pry(main)>
nathansmith@opstop ~> python
Python 2.7.4 (default, May 6 2013, 00:06:59)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 0.1 + 0.2
0.30000000000000004
>>>
nathansmith@opstop ~> clj
Clojure 1.5.1
user=> (+ 0.1 0.2)
0.30000000000000004
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment