1. 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.






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd