Question: If the decPay variable contains the number 1200.76, which of the following statements displays the number as 1,200.76? a. lblPay.Text = decPay.ToString(N2) b. lblPay.Text =

If the decPay variable contains the number 1200.76, which of the following statements displays the number as 1,200.76?
a. lblPay.Text = decPay.ToString("N2")
b. lblPay.Text = decPay.ToString("F2")
c. lblPay.Text = decPay.ToString("D2")
d. lblPay.Text = decPay.ToString("C2")

Step by Step Solution

3.36 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a lblP... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Microsoft Visual Basic Questions!