quaeratin
Version:
An extended precision floating point library (as per Shewchuk) - precision only limited by overflow / underflow
16 lines (10 loc) • 296 B
text/typescript
import { parseDouble } from "./parse-double.js";
/**
* Return the significand of the given double with the hidden bit added (in case
* a is not subnormal or 0, etc.)
* @param a A double
*/
function significand(a: number) {
return parseDouble(a).significand;
}
export { significand }