Question:What is the function of floor(), ceil() and round() methods of Math object?
Answer Math.round(): The round() method of Math Objects rounds the numeric data to the nearest integer. Math.floor(): The floor() method of Math objects returns the input data, rounded downwards to the nearest integer. Math.ceil(): The ceil() method of Math objects returns the input data, rounded upwards to the nearest integer.
+ Report
What is the function of floor(), ceil() and round() methods of Math object?