Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- number = 1.4
- # Use math.ceil to round up.
- result = math.ceil(number)
- print(result)
- # The round method will round down because 1.1 is less than 1.5.
- print(round(number))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement