Przeglądaj źródła

Clarify divide operator, fixes #64

Swaroop C H 7 lat temu
rodzic
commit
f1a648b49c
1 zmienionych plików z 2 dodań i 1 usunięć
  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