% modulus¶
Description¶
Returns the decimal part (remainder) of the quotient.
Syntax¶
A % B
- A
- Any expression evaluating to a numeric type.
- B
- Any expression evaluating to a numeric type.
Return Value¶
According to coercion rules.
Time Complexity¶
#TODO
Example¶
>>> 5 % 2
1
>>> 4.7 % 1
0.7000000000000002 # if curious how come read up on floating point numbers implementation
>>> (1+2j) % 1
2j
See also¶
#TODO