summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrian Rue <brianrue@gmail.com>2013-06-28 15:55:23 -0700
committerBrian Rue <brian@rollbar.com>2013-06-28 16:56:42 -0700
commitcf98f74d6147e1aded5a863298f9cb1446d5da23 (patch)
treef0a11bdcc503649560d22648d850e9e75b5f6380
parent6f255a5e62ead8d40c4d254dcc63488e543e68d8 (diff)
Use consistent example for demonstrating integer vs. float division
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 20e4f3a8..93fe5f25 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -36,7 +36,7 @@ to Python 2.x. Look for another tour of Python 3 soon!
# To fix division we need to learn about floats.
2.0 # This is a float
-5.0 / 2.0 #=> 2.5 ahhh...much better
+11.0 / 4.0 #=> 2.75 ahhh...much better
# Enforce precedence with parentheses
(1 + 3) * 2 #=> 8