UNPKG
stringencoding
Version:
latest (0.0.0)
0.0.0
Encode to/from Typed Array buffers
shtylman/stringencoding
stringencoding
/
src
/
div.js
12 lines
(9 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** *
@param
{
number
} n The numerator. *
@param
{
number
} d The denominator. *
@return
{
number
} The result of the integer division of n by d. */
function
div
(
n, d
) {
return
Math
.
floor
(n / d); }
module
.
exports
= div;