Calculation Error

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		double r = 1 + 2 - 3 * 4 / 5; // should be 0.6 or 0.6000000000000001
		Console.WriteLine(r == 1); // Prints True
		Console.WriteLine("Result: " + r); // Prints 1
	}
}
;