What is returned by math.modf(1.0)?
A. (0.0, 1.0)
B. (1.0, 0.0)
C. (0.5, 1)
D. (0.5, 1.0)
Answer:A
What is returned by math.modf(1.0)?
A. (0.0, 1.0) B. (1.0, 0.0) C. (0.5, 1) D. (0.5, 1.0)
Explanation: The first element is the fractional part and the second element is the integral part of the argument.