How would you round off a value from 1.66 to 2.0?
Answer: A
Correct answer: ceil(1.66)
ceil returns the smallest integer not less than its argument, so 1.66 becomes 2.0. floor would give 1.0, and neither roundup nor roundto exists in the standard library - the standard rounding function is round.
Please log in or register to report this question.