how to convert string to decimal number while maintaining the decimal places in C# [duplicate]

There is no difference between a decimal with value 12.1 or value 12.10.

If you want to display the decimal with 2 decimal place, specify a format string in ToString:

myDouble.ToString("0.00");

Leave a Comment