UNPKG

@dinero.js/calculator-number

Version:

Number calculator implementation for Dinero.js

11 lines 327 B
/** * Returns the quotient of two numbers with no fractional part. * * @param dividend - The number to divide. * @param divisor - The number to divide with. * * @returns The quotient of the two numbers. */ export var integerDivide = function integerDivide(dividend, divisor) { return Math.trunc(dividend / divisor); };