0

I got a code:

for (double i= 0; i < 1; i+=0.02)
{
    Console.WriteLine(string.Format("Iteration {0}", i));
}

And result is:

console output gives  0,xx00000000001

I can't understand why it's add mystic 0,0000000000001?

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103

0 Answers0