Summary: Use Windows PowerShell to return the remainder after dividing two numbers.
How can use Windows PowerShell to divide two numbers and only return the remainder (called a modulo operation)?
In Windows PowerShell, the modulo operator is the % sign. Here are a few examples of how to use it:
PS C:\> 3 % 2
1
PS C:\> 5 % 2
1
PS C:\> 11 % 2
1