Question Detail
Question
When using
int(x) for integer conversion in Python, what happens to the decimal portion of the numeric value x?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 43, under 'Numeric Operations', states for 'Integer Conversion (int(x))': 'The decimal portion is truncated, not rounded.'
Hint
Find the description of 'Integer Conversion' using
int(x) in the 'Numeric Operations' table on page 43.