Rounding to two decimal places, to the nearest 0.05

Hey @Muneer_Alrashdan ,

You can use the below method

double value = 3.14159;
double roundedValue = Math.Round(value / 0.05) * 0.05;

where value is the number which you want to do Round off

Thanks,
Sanjit

1 Like