I have a decimal variable with following values
a = 99.9999
b = 88.423766
c = 11.896589
Here I am trying to convert with 4 decimal points.
And I used
a = Math.Round(Convert.ToDecimal(a), 4);
b = Math.Round(Convert.ToDecimal(b), 4);
c = Math.Round(Convert.ToDecimal(c), 4);
However I get values like
a = 100
b = 88.4238
c = 11.8966
Though the preferred values are with out rounding,
a = 99.9999
b = 88.4237
c = 11.8965
How can I achieve it.