Distinguish between
1) Math.ceil() and Math.floor()
2) Math.round() and Math.reint()
Answers
Answer:
Math.ceil( )
Returns the smallest double value that is greater than or equal to the argument and is equal to a mathematical integer
Math.floor()
Returns the largest double value that is less than or equal to the argument and is equal to a mathematical integer
Math. round accepts both double s and float s, and has varying return types for some reason ( long and int respectively, which are the smallest type large enough to cover the entire range represented by the parameter). Math. rint accepts double s and returns double s
Explanation:
hope it helps!
Answer:
Hi
Ans1:-In the attachment
Ans2:-Math. round accepts both double s and float s, and has varying return types for some reason ( long and int respectively, which are the smallest type large enough to cover the entire range represented by the parameter). Math. rint accepts double s and returns double s.
Hope it helps
and pls mark this answer as brainlist