3 ms·
Use decimals in c# they are used for exact calculation ( and are slower) PS. It says: Console.WriteLine("{0:R}", .1 + .2); But when you do .1 + .2 it is 0.3 :
by NicoJuicy 10y ago
Use decimals in c# they are used for exact calculation ( and are slower)
PS. It says: Console.WriteLine("{0:R}", .1 + .2);
But when you do .1 + .2 it is 0.3 :) . With the 0:R he actually converts it to double which give the false result