Skip to content

Instantly share code, notes, and snippets.

@droyad
Created April 30, 2012 02:31
Show Gist options
  • Save droyad/2555007 to your computer and use it in GitHub Desktop.
Save droyad/2555007 to your computer and use it in GitHub Desktop.
double n = 0;
for(int x = 0; x < 20; x++)
{
n+= 0.3;
}
n.Dump();
(n == 6.0).Dump();
((0.3 * 20) == 6.0).Dump();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment