Skip to content

Commit

Permalink
Update math.md (#9800)
Browse files Browse the repository at this point in the history
Fixed misspellings..
  • Loading branch information
SylviaVargas authored Jan 10, 2024
1 parent b6bf5d7 commit acf090f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common-docs/reference/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ Integer multiply and divide treats the two numbers it operates on as integers. I

### imul

Interger multiplication of two numbers `3.9` and `4.2` results in a value of `12` since just the values of `3` and `4` are used from the numbers multiplied.
Integer multiplication of two numbers `3.9` and `4.2` results in a value of `12` since just the values of `3` and `4` are used from the numbers multiplied.

```block
let myInt = Math.imul(3.9, 4.2)
let myNumber = 3.9 * 4.2
```
### idiv

Interger division of two numbers `7.8` and `2.6` results in a value of `3` since just the values of `7` and `2` are used from the numbers multiplied.
Integer division of two numbers `7.8` and `2.6` results in a value of `3` since just the values of `7` and `2` are used from the numbers multiplied.

```block
let myInt = Math.idiv(7.8, 2.6)
Expand Down

0 comments on commit acf090f

Please sign in to comment.