- 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 to find and replace a word in a delimited string 1 Answer

Trying to work with UFT and a dynamically generated Excel file 1 Answer

How to call a particular Sub/Function from one vbs file to other vbs file. 2 Answers

How to concatenate two strings with the newline character UFT GUI? 2 Answers

How to include a double quote inside of the string in UFT GUI? 2 Answers

(c) 2015 Orasi Software, Inc.

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