What are the math operators does VBScript? UFT GUI
Question ID: 106569
0
0

Does anyone have a list of the math operators in VBScript?

Marked as spam
Posted by (Questions: 122, Answers: 3)
Asked on January 5, 2016 5:07 pm
46 views
Answers (2)
0
Private answer

Add:

Operator: +
Example: 9+2
Result: 11

Subtract:

Operator: -
Example: 10-5
Result: 5

Multiply:

Operator: *
Example: 8*5
Result: 40

Divide:

Operator: /
Example: 8/2
Result: 4

Exponent:

Operator: ^
Example: 2^4
Result: 16

Modulus:

Operator: Mod
Example: 22 Mod 10
Result: 2

Marked as spam
Posted by (Questions: 3, Answers: 168)
Answered on January 5, 2016 5:16 pm
0
Private answer

The / (division operator) divides 2 numbers and returns a floating-point result. (https://msdn.microsoft.com/en-us/library/dfhkc2hz%28v=vs.84%29.aspx)

Whereas the (integer division operator) divides 2 numbers and returns an integer result. (https://msdn.microsoft.com/en-us/library/bzydt0tx%28v=vs.84%29.aspx)

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on January 5, 2016 5:25 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top