Skip to content

Instantly share code, notes, and snippets.

@lorenzoongithub
Created April 18, 2015 13:23
Show Gist options
  • Save lorenzoongithub/69a334c066d3157e775f to your computer and use it in GitHub Desktop.
Save lorenzoongithub/69a334c066d3157e775f to your computer and use it in GitHub Desktop.
simple math
//
// javascript's math
//
var x = 0.1;
var y = 0.2;
if (x+y == 0.3) throw '';
if (x+y != 0.30000000000000004) throw '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment