+ 2

what does 7% (2//3) meant ?

15th Sep 2016, 2:29 PM
Eleanor Nartenor
Eleanor Nartenor - avatar
5 odpowiedzi
+ 8
// performs the euclidian division. % gives you the modulus, ie the remainder of the euclidian division. For example: 42//9 = 4 and 42%9 = 6 because 42 = 9*4+6. 7% (2//3) is probably undefined since I don't think modulo 0 has any meaning.
15th Sep 2016, 3:07 PM
Zen
Zen - avatar
+ 4
// gives the quotient while % gives you the remainder
15th Sep 2016, 4:59 PM
Kavit Shah
Kavit Shah - avatar
0
i dont no
6th Oct 2016, 8:55 PM
Yahiya Lahsika
Yahiya Lahsika - avatar