Question: 10. 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
10. 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
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
