हिंदी

Which of the following mathematical methods returns only an integer? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following mathematical methods returns only an integer?

विकल्प

  • Math.ceil(n)

  • Math.sqrt(n)

  • Math.floor(n)

  • Math.round(n)

MCQ

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×