I want to remove the characters after 2 decimal values. while I'm formatting not getting any changes in the value. I don't want convert it to double and then string due to performance issue may arise.
data type is Float in the database
value -172.209
Exp op - 172.20
code
string max_demand = dt_max_demand.Rows[0][0].ToString();
max_demand= String.Format("{0:0.0#}", max_demand);