Parameters
- a: number
- b:
| 1
| 2
| 3
| 32
| NonZeroNumber
| 4
| 5
| 6
| 7
| 8
| 9
| 11
| 10
| 24
| 14
| 34
| 12
| 13
| 15
| 16
| 17
| 18
| 19
| 20
| 21
| 22
| 23
| 25
| 26
| 27
| 28
| 29
| 30
| 31
| 33
| 35
| 36
| 37
| 38
| 39
| -1
| -2
| -3
| -32
| -4
| -5
| -6
| -7
| -8
| -9
| -11
| -10
| -24
| -14
| -34
| -12
| -13
| -15
| -16
| -17
| -18
| -19
| -20
| -21
| -22
| -23
| -25
| -26
| -27
| -28
| -29
| -30
| -31
| -33
| -35
| -36
| -37
| -38
| -39
| -40
Returns number
The integer quotient, or NaN
if b is zero
Performs integer division using floor division.
Computes
⌊a / b⌋
by flooring both operands before division and then flooring the result. This ensures integer arithmetic semantics.Note: Unlike
div
, this function does not enforce non-zero divisor at compile time. Division by zero returnsNaN
.