From 4c6be14b8acf5f0f3495d06249406edc5dde72f2 Mon Sep 17 00:00:00 2001 From: triumphantomato <91909240+triumphantomato@users.noreply.github.com> Date: Thu, 7 Sep 2023 22:31:15 -0700 Subject: 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 --- python.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python.html.markdown') 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 -- cgit v1.2.3