New course! Every coder should learn Generative AI!
Try a free lesson+ 1
what is difference between math.ceil() and round () in python??
3 Answers
+ 8
math.ceil() rounds up.
eg: 2.6 to 3
2.2 to 3
2.9 to 3
math.round is the rounding of numbers just like you do in math. No need to explain
Happy Coding. If you understood the concept please mark as best answer
+ 1
Yes 🇺🇿kitabski🇺🇿
0
And is there math.floor() finction in python which rounds downwards?