Precision comparison in C#
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
Precision comparison in C#
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us