- Home /

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

Comment

**Answer** by Jafar
·
Jan 05, 2016 at 05:16 PM

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
```

**Answer** by Michaeldx
·
Jan 05, 2016 at 05:25 PM

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)

How do I get a screen capture of a object or window in UFT GUI? 1 Answer

How to output part of a value from an edit field in UFT GUI? 2 Answers

How can I use the Dictionary object to store a global variable 1 Answer

Does anybody have suggestion on how to read and write to a text file with UFT GUI? 3 Answers

(c) 2015 Orasi Software, Inc.

- Anonymous
- Sign in
- Create
- Ask a question
- Explore
- Topics
- Questions
- Users