PowerShell: Arithmetic Operators
Basic Arithmetic Operators
# addition 3+4 # 7 # substraction, sign negation 4-3 # 1 # multiplication 3*4 # 12 # division 10/2 # 5 10/2.1 # 4.76190476190476 # modulus (remainder of division) 5%2 # 1
Power
[Math]::Pow(2,3) # 8
Bit Operators
-band→ bitwise and-bnot→ bitwise not-bor→ bitwise or-bxor→ bitwise xor-shr→ bitwise shift right-shl→ bitwise shift left