Created
May 7, 2014 13:53
-
-
Save hkulekci/7cd212d2a1605155fa8d to your computer and use it in GitHub Desktop.
Ceil Method Usage Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from math import ceil | |
>>> ceil(1.3) | |
2.0 | |
>>> | |
>>> | |
>>> ceil(1.00002) | |
2.0 | |
>>> ceil(48/45) | |
1.0 | |
>>> 48/45 | |
1 | |
>>> 48.0/45.0 | |
1.0666666666666667 | |
>>> ceil(48.0/45.0) | |
2.0 | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment