+ 1

What's modula and floor division?

What's modula and floor division? Anybody?

3rd Nov 2016, 12:23 PM
Zakibb Mushtaq
Zakibb Mushtaq - avatar
2 odpowiedzi
+ 4
By example: >>> 19/7 # normal 2.714285714... >>> 19//7 # floor (notice: not rounded) 2 >>> 19%7 # mod 5
3rd Nov 2016, 5:13 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
number A can be written as B*C+D. A//B is C (D is ignored) A%B is D (C is ignored)
6th Nov 2016, 9:56 AM
Redstone Tehnik
Redstone Tehnik - avatar