What does the % in a calculation? I can\'t seem to work out what it does.
%
Does it work out a percent of the calculation for example: 4 % 2
4 % 2
It is, as in many C-like languages, the remainder or modulo operation. See the documentation for numeric types — int, float, long, complex.