int number = 3;
double value = Math.Round(46.00000000001, number);
Console.WriteLine(value);
My intention is to give input as 46.00000000001 and get output as 46.000 in the consolewindow. I want to get 46.000, not 46. So pls guide me.
if i give Math.Round(97.1639230690752, 3) its rounding of and giving me 97.164
but if do for Math.Round(46.00000000001, number) , its only giving me 46 , not 46.000
Pls explain