FIND THE ANSWERS

how to calculate formatcurrency to any whole number in vb and also how to add the dollar sign to to the number?

Answer this question

  • how to calculate formatcurrency to any whole number in vb and also how to add the dollar sign to to the number?


Answers

Answer #1 | 27/12 2013 16:10
Math.Ceiling
Answer #2 | 28/12 2013 04:03
To add dollar sign, modify your code as follows (only a portion of your code must be modified). TextBoxCST.Text = (ValSmll + Valmed + Vallarg).ToString("$#0.00") TextBoxTax.Text = (Valcost * 0.15).ToString("$#0.00") TextBoxBill.Text = (Valcost + Valtax).ToString("$#0.00") To multiply these answers, use the following modifications TextBoxCST.Text = ((ValSmll + Valmed + Vallarg)*3).ToString("$#0.00") TextBoxTax.Text = ((Valcost * 0.15)*4).ToString("$#0.00") TextBoxBill.Text =((Valcost + Valtax)*2).ToString("$#0.00") TexMav

Possible answer

Anonymous107379
Login to your account
Create new account