Computer Science, asked by aybrainy, 1 month ago

Distinguish between
1) Math.ceil() and Math.floor()
2) Math.round() and Math.reint()

Answers

Answered by KookshaEuphoria
1

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!

Answered by rashmitamishtiroy
1

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

Attachments:
Similar questions