Precision comparison in csharp

Code Example - Precision comparison in csharp

                
                        using System;

float x = 1f / 3f;
double y = 1d / 3d;
decimal z = 1m / 3m;

Console.WriteLine(x); // 0.33333334
Console.WriteLine(y); // 0.3333333333333333
Console.WriteLine(z); // 0.3333333333333333333333333333