summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeslie Zhang <zxs1989@mail.ustc.edu.cn>2015-11-07 16:57:44 +0800
committerLeslie Zhang <zxs1989@mail.ustc.edu.cn>2015-11-07 16:57:44 +0800
commit646eb2a2a19c4cecc20f680c959dd42da1a2961f (patch)
treeacceb8e89ba56da4fb7ef2bea332f5c186b75573
parent8799f11b89c947924e56e61990769a3831631394 (diff)
Correct math.sqrt(16)
math.sqrt(16) returns 4.0 instead of 4
-rw-r--r--python3.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 2398e7ac..1f9d0e42 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -689,7 +689,7 @@ i.age # => raises an AttributeError
# You can import modules
import math
-print(math.sqrt(16)) # => 4
+print(math.sqrt(16)) # => 4.0
# You can get specific functions from a module
from math import ceil, floor