Dlaczego program taki:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
float x=0;
for(int a=0;a<10;a++)
{
x+=0.1f;
Console.WriteLine(x);
}
Console.ReadKey();
}
}
}
Daje wynik:
0,1
0,2
0,3
0,4
0,5
0,6
0,7
0,8000001
0,9000001
1
Nie rozumiem dlaczego są liczby
0,8000001
0,9000001