Methods for Math Operations
Method | Result |
---|---|
__add__(self, other) |
|
__sub__(self, other) |
|
__mul__(self, other) |
|
__truediv__(self, other) |
|
__floordiv__(self, other) |
|
__mod__(self, other) |
|
__divmod__(self, other) |
|
__pow__(self, other) |
|
__lshift__(self, other) |
|
__rshift__(self, other) |
|
__and__(self, other) |
|
__or__(self, other) |
|
__xor__(self, other) |
self ^ other |
__iadd__(self, other) |
|
__isub__(self, other) |
|
__imul__(self, other) |
|
__itruediv__(self, other) |
|
__ifloordiv__(self, other) |
|
__imod__(self, other) |
self %= other |
__ipow__(self, other) |
|
__iand__(self, other) |
|
__ior__(self, other) |
|
__ixor__(self, other) |
self ^= other |
__ilshift__(self, other) |
|
__irshift__(self, other) |
|
__neg__(self) |
|
__pos__(self) |
|
__abs__(self) |
|
__invert__(self) |
|
__int__(self) |
|
__float__(self) |
|
__complex__(self) |
References
Previous
Next