quaeratin
Version:
An extended precision floating point library (as per Shewchuk) - precision only limited by overflow / underflow
21 lines (13 loc) • 440 B
text/typescript
import { eLongDivide as eLongDivide_ } from "./e-long-divide.js"
// We *have* to do the below❗ The assignee is a getter❗ The assigned is a pure function❗
const eLongDivide = eLongDivide_;
/**
* Returns the result of the integer division a/b.
*
* * **precondition:** a and b must be integers, b !== 0
*/
function eIntDiv(
a: number[], b: number[]): number[] {
return eLongDivide(a,b).div;
}
export { eIntDiv }