Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
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:


Return to the VBScript to Windows PowerShell home page

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