I have a price textbox and I want to get a decimal value with 2 decimals, no matter the original string is a already a decimal or an integer. For example:
input = 12 --> output = 12.00
input = 12.1 --> output = 12.10
input = 12.123 --> output = 12.12
use this method
decimal.ToString("N");