Which of the following mathematical methods returns only an integer?
Advertisements
प्रश्न
Which of the following mathematical methods returns only an integer?
पर्याय
Math.ceil(n)
Math.sqrt(n)
Math.floor(n)
Math.round(n)
MCQ
Advertisements
उत्तर
Math.round(n)
Explanation:
This method rounds up/down a supplied decimal value to a whole number. For example, Math.round(5.5) = 6, but Math.round(5.4) = 5.
shaalaa.com
Introduction of Mathematical Library Methods
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
