浏览代码

Clarify divide operator, fixes #64

Swaroop C H 7 年之前
父节点
当前提交
f1a648b49c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      op_exp.md

+ 2 - 1
op_exp.md

@@ -41,9 +41,10 @@ Here is a quick overview of the available operators:
     - `13 / 3` gives `4.333333333333333`
 
 - `//` (divide and floor)
-    - Divide x by y and round the answer _down_ to the nearest whole number
+    - Divide x by y and round the answer _down_ to the nearest integer value. Note that if one of the values is a float, you'll get back a float.
     - `13 // 3` gives `4`
     - `-13 // 3` gives `-5`
+    - `9//1.81` gives `4.0`
 
 - `%` (modulo)
     - Returns the remainder of the division