float calc = 0; float lenght=0, breadth=0, height=0; lenght = float.Parse(txtlenght.Text); breadth = float.Parse(txtbreath.Text); height = float.Parse(txtheight.Text); calc = ((lenght * breadth * height) / 6000); calc = Convert.ToInt32((float)Math.Round(calc, 3)); if (calc != 0) { lblresult.Text = "Your Volumetric Weight is : " + calc.ToString() + "Kg."; }
lblresult.Text = "Your Volumetric Weight is : " + calc.ToString("0.00") + "Kg.";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)