Google News
logo
C# - Quiz(MCQ)
Which of the following converts a floating point or integer type to a decimal type in C#?
A)
ToDouble
B)
ToDecimal
C)
ToInt16
D)
ToInt32

Correct Answer :   ToDecimal


Explanation : ToDecimal() method converts a floating point or integer type to a decimal type.

Advertisement