I write this code and run in .net framework 4.6.1 and .net core 2.2, Why result is different ? Thanks.
class Program
{
static void Main(string[] args)
{
float i = 1F;
float j = 0.1F;
Console.WriteLine(i - j * 10);
Console.ReadKey();
}
}
I expect the output of both platform to be -1.490116E-08, but .net core output is 0.