What is floor operation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is floor operation

6th Jan 2021, 1:41 PM
Atishay Jain
3 Answers
6th Jan 2021, 1:52 PM
Atishay Jain
+ 1
Floor Operation rounds the number to the previous integer. If you understand the basic concepts of rounding, you must be knowing that 1.6 will be rounded to 2 and 1.4 will be rounded to 1. But floor operation rounds it to previous integer that means. Even if you floor 1.98, it will still be 1. the opposite of floor is ceil. You know the word "ceiling" and "floor" ?? Right? That's it. If you round 1.04 using ceil method, it will be 2. I hope this explanation is enough
6th Jan 2021, 2:09 PM
CHANDAN ROY
CHANDAN ROY - avatar
0
Floor rounds nubmers to bottom. Example: math floor 0.1 will be 0, 0.9 will be 0 too Celi rounds numbers to top. 0.1 will be 1, and 0.9 will be 1 too
6th Jan 2021, 1:52 PM
Qwerty Uiop
Qwerty Uiop - avatar