I need 45.7 to be 45.70
Math.Round(d, 2) have no effect. Have tried with decimal and double type.
I would appreciate any kind of help.
I need 45.7 to be 45.70
Math.Round(d, 2) have no effect. Have tried with decimal and double type.
I would appreciate any kind of help.
You need to apply a string format:
string.Format("{0:N2}", 45.7)
Check here for docs on the string formatters