try this,... txtOutput.Text is ur textbox name and lblRate.Text is ur Float variable name txtOutput.Text = Math.Round(Convert.ToDecimal(lblRate.Text), 2).ToString();
Double DblValue = 333.4567; string StrValue = DblValue.ToString(".##"); //Answer will be 333.46.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)