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

Follow
### Follow this Question

Dealing with character limit on a field 2 Answers

Using AOM with QTP/UFT to run on remote computer? 1 Answer

Get number of columns in Excel from UFT 1 Answer

Difference between Static descriptive programming and dynamic descriptive programming 1 Answer

How to find and replace a word in a delimited string 1 Answer

(c) 2015 Orasi Software, Inc.