UNPKG

aureooms-js-number

Version:

Primitive number type arithmetic for JavaScript

8 lines (4 loc) 89 B
export function idivmod ( a , b ) { const q = a / b | 0 ; return [ q , a %= b ] ; }