This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Suppose decimal gradePointAverage = 3.99872831m;. What is the value of (int) gradePointAverage?
decimal gradePointAverage = 3.99872831m;
(int) gradePointAverage
3.99
4
3
In the following code decimal x = 7 / 5; why does x = 1?
decimal x = 7 / 5;
Using the decimal data type truncates the fraction.
decimal
Dividing two integers performs integer division.
This line of code has an error.
You must answer all questions before checking your work.
Was this page helpful?