title: how to use the round maths function in asp.net?
body: <p>I am use the textbox value like <code>1455.23</code>, use the round function my output is <code>0000145523</code> but customer not enter float values like <code>1234</code> my output is <code>0000123400</code> pls give me suggestion
  <strong>my code is format.cs</strong></p>
  
  <pre><code>public bool formatAmount(float flAmount, out string strOutput)
  {
    bool bval = false;
    float rounded = (float)Math.Round(flAmount, 2);
    if(rounded!=null)
    {
      flAmount = flAmount * 100;
      strOutput = Convert.ToString(flAmount);
      bVal = true;
    }
  
    return bVal;
  }
  </code></pre>
  
  <p>In my asp page code like this</p>
  
  <pre><code>string ods;
  float a = Convert.Todecimal(txtSSA.Text);
  string sss = oclsUtility.formatAmount(a, out ods);
  </code></pre>