bigfloat
Version:
Fast arbitrary precision math library for computational geometry.
7 lines (6 loc) • 395 B
TypeScript
/** Remove leading and trailing insignificant zero digits. */
export declare function trimNumber(str: string): string;
/** Output EXACT value of an IEEE 754 double in any base supported by Number.toString.
* Exponent must be between -2 and 61, and last 3 bits of mantissa must be 0.
* Useful for debugging. */
export declare function numberToString(dbl: number, base?: number): string;