+ 7
What is the difference between math.floor () and math.ceil ()? in java (math)
3 Respuestas
+ 8
Thank you brother 🖤
+ 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