title: How to convert answer into two decimal point
body: <p>This is my code and I want the output which is <code>txtA.Text</code> and <code>txtB.Text</code> 
  to be in two decimal places.</p>
  
  <pre><code>Public Class Form1
      Private Sub btncalc_Click(ByVal sender As System.Object,
                                ByVal e As System.EventArgs) Handles btncalc.Click
        txtA.Text = Val(txtD.Text) / Val(txtC.Text) * Val(txtF.Text) / Val(txtE.Text)
        txtB.Text = Val(txtA.Text) * 1000 / Val(txtG.Text)
      End Sub
  End Class
  </code></pre>