Converting VBScript's Multiplication Operator

Definition: Multiplies two numbers.

Multiplication Operator

If you need to multiply two numbers in Windows PowerShell you can do what pretty much everyone who needs to multiply two numbers does: just use the asterisk (*) as the multiplication symbol. For example, this command multiplies 45 by 334 and stores the result in the variable $a:

$a = 45 * 334

For those few of you who didn’t bother to do this equation in your head, $a should be equal to this:

15030

Return to the VBScript to Windows PowerShell home page