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
a lblP... View full answer
Get step-by-step solutions from verified subject matter experts
