summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authortriumphantomato <91909240+triumphantomato@users.noreply.github.com>2023-09-07 22:31:15 -0700
committerGitHub <noreply@github.com>2023-09-08 13:31:15 +0800
commit4c6be14b8acf5f0f3495d06249406edc5dde72f2 (patch)
tree5fe199c0ebd400ef3b0617451c13f0cef1343bf7 /python.html.markdown
parente9f263a75f0ec9c2984307d0fd4503f8476c02fa (diff)
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
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/python.html.markdown b/python.html.markdown
index efeb0e86..326ddb95 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -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