Changes

Basic Windows PowerShell 1.0 Operators

2 bytes added, 19:36, 26 November 2008
Division, Subtraction and Modulus Operators
</pre>
=== Division, Subtraction and Modulus Operators ===
Unlike the above operators, the Windows PowerShell divide, subtract and modulus operators are designed only to work with number. It is not, therefore, possible to divide one string by another or subtract two arrays. In terms of performing conversions, as long as one operand is a number, PowerShell will attempt convert the remaining operand to a number (assuming, of course, that it is not already a number). For example, the following expressions all produce the same result: