+ 7

What is the difference between math.floor () and math.ceil ()? in java (math)

24th Jun 2020, 11:29 AM
Ahmed Mohammed
Ahmed Mohammed - avatar
3 Réponses
+ 8
Thank you brother 🖤
24th Jun 2020, 11:42 AM
Ahmed Mohammed
Ahmed Mohammed - avatar
+ 3
In any Language just not java, math.floor() rounds the value to the nearest integer smaller than actual value for example 3.7 gets rounded to 3, math.ceil is vice versa of floor 3.7 gets rounded to 4 or 3.3 to 4
24th Jun 2020, 11:37 AM
Abhay
Abhay - avatar