What is the difference between math.floor () and math.ceil ()? in java (math) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
2 Respostas
+ 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