QuestionQ159

VerifiedData Manipulation

Given these variable assignments:

Question Image

What is the output of this conditional?

outputX = If(CInt(doubleX + CDbl(intX) + CDbl(stringX)) > 38.30, 1, 0)

Explanation

CDbl converts the integer and numeric string to doubles, giving a sum of 37.5. CInt uses midpoint-to-even rounding, so 37.5 becomes 38. Because 38 is not greater than 38.30, the conditional returns 0.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!