UNPKG

double-double

Version:

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

11 lines 293 B
/** * Returns the absolute value of the given double-double precision floating * point number. * @param f a double-double precision floating point number */ function ddAbs(f) { const Q = f[1]; return (Q < 0) ? [-f[0], -Q] : f; } export { ddAbs }; //# sourceMappingURL=dd-abs.js.map