Skip to content

Instantly share code, notes, and snippets.

View droyad's full-sized avatar

Robert Wagner droyad

View GitHub Profile
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();
double x = 0;
while(x != 30)
x += 0.3;
System.Console.WriteLine("Done: " + x);