Message289655
I'm sorry, but was a typing error. Try this operations:
a, b, c = 7, -7, 2
print "1:", a // c, a % c
print "2:", b // c, b % c
the result is:
1: 3 1
2: -4 1
The division is the same, except by the signal (variable b is negative, but both, variables "a" and "b" are integers). |
|
Date |
User |
Action |
Args |
2017-03-15 09:39:44 | marcosthomazs | set | recipients:
+ marcosthomazs, martin.panter |
2017-03-15 09:39:44 | marcosthomazs | set | messageid: <1489570784.47.0.266570898153.issue29815@psf.upfronthosting.co.za> |
2017-03-15 09:39:44 | marcosthomazs | link | issue29815 messages |
2017-03-15 09:39:44 | marcosthomazs | create | |
|