UNPKG

double-double

Version:

Pure double-double precision functions *with strict error bounds*.

15 lines 484 B
import { ddDiffDd } from "./dd-diff-dd.js"; // We *have* to do the below❗ The assignee is a getter❗ The assigned is a pure function❗ /** @internal */ const diff = ddDiffDd; /** * Returns the minimum of a and b. * @param a a double-double precision floating point number * @param b another double-double precision floating point number */ function ddMin(a, b) { const res = diff(a, b)[1]; return res > 0 ? b : a; } export { ddMin }; //# sourceMappingURL=dd-min.js.map