(Convert.ToDecimal(12.0)).ToString("#.##");
(Convert.ToDecimal(12.0)).ToString("F");
Quote:f user enters numeric Value as 12.00 it should display as 12.00, if user enters numeric Value as 12.0 it should display as 12.0,
string
float
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)