Languages
[Edit]
EN

Python - math.ceil() method example

0 points
Created by:
Mark-Rotteveel
537

The math.ceil() function returns an integer value that is greater than or equal to the argument - the result of the round-up operation. 


1. Documentation

Edit
Syntax
Parameters

number - float value.

If number is not a float, delegates to x.__ceil__(), which should return an Integral value

Result

Rounded up number value

Descriptionceil() is a method that takes only one parameter and returns a rounded-up value.

2. Rounding with precision up-to n places example

Edit

References

Edit
  1. Floor and ceiling functions - Wikipedia

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Python - math module

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join