mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update expected results for ceil and floor (#4747)
ceil and floor return ints not floats - check in repl or the python3 docs here: https://docs.python.org/3/library/math.html
This commit is contained in:
parent
e9f263a75f
commit
4c6be14b8a
@ -685,8 +685,8 @@ print(math.sqrt(16)) # => 4.0
|
||||
|
||||
# You can get specific functions from a module
|
||||
from math import ceil, floor
|
||||
print(ceil(3.7)) # => 4.0
|
||||
print(floor(3.7)) # => 3.0
|
||||
print(ceil(3.7)) # => 4
|
||||
print(floor(3.7)) # => 3
|
||||
|
||||
# You can import all functions from a module.
|
||||
# Warning: this is not recommended
|
||||
|
Loading…
Reference in New Issue
Block a user