Export (0) Print
Expand All
Expand Minimize

Converting VBScript's Division Operator


Windows PowerShell


Definition: Divides two numbers and returns a floating-point result.

Division Operator

Divide and conquer. We can’t make any promises regarding the conquer part of that statement, but in Windows PowerShell you can divide a pair of numbers by using / as the division operator. For example, this commands divides 761 by 11 and stores the value in the variable $a:



$a = 761 / 11

When you run this command and then echo back the value of $a you should get the following:



69.1818181818182


Return to the VBScript to Windows PowerShell home page

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft