diff options
author | Leslie Zhang <zxs1989@mail.ustc.edu.cn> | 2015-11-07 16:57:44 +0800 |
---|---|---|
committer | Leslie Zhang <zxs1989@mail.ustc.edu.cn> | 2015-11-07 16:57:44 +0800 |
commit | 646eb2a2a19c4cecc20f680c959dd42da1a2961f (patch) | |
tree | acceb8e89ba56da4fb7ef2bea332f5c186b75573 /python3.html.markdown | |
parent | 8799f11b89c947924e56e61990769a3831631394 (diff) |
Correct math.sqrt(16)
math.sqrt(16) returns 4.0 instead of 4
Diffstat (limited to 'python3.html.markdown')
-rw-r--r-- | python3.html.markdown | 2 |
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 |