Browse Source

Add div operation

Yann Weber 6 years ago
parent
commit
07fc92c527
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      gte/turmit.py

+ 9
- 0
gte/turmit.py View File

@@ -216,6 +216,15 @@ class Turmit(object):
216 216
         '''
217 217
         return a * b
218 218
 
219
+    @RpnOp
220
+    def div(self, a, b):
221
+        ''' @brief Divides a with b
222
+            @param a int : value
223
+            @param b int : value
224
+            @return a // b
225
+        '''
226
+        return a // b
227
+
219 228
     @RpnOp
220 229
     def bin_or(self, a, b):
221 230
         ''' @brief Binary or

Loading…
Cancel
Save