मराठी

Distinguish between Math.rint( ) and Math.round( ).

Advertisements

प्रश्न

Distinguish between Math.rint( ) and Math.round( ).

फरक स्पष्ट करा
Advertisements

उत्तर

S. No. Math.rint() Math.round()
1. Math.rint() returns a shortened version of a number. Math.round() returns the rounded result, up to the closest integer.
2. The return type of Math.rint() is double. Math.round() returns either int or long.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.07: Mathematical Library Methods - EXERCISES [पृष्ठ ८१]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.07 Mathematical Library Methods
EXERCISES | Q V. 2. | पृष्ठ ८१
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×