Function: floorMod ¶
▸ floorMod(a
, n
): number
Get floored division
Parameters ¶
Name | Type |
---|---|
a | number |
n | number |
Returns ¶
number
returns remainder of floored division, i.e., floor(a / n). Useful for consistent modulo of negative numbers. See http://en.wikipedia.org/wiki/Modulo_operation.