UNPKG

decimal128

Version:

Partial implementation of IEEE 754 Decimal128 decimal floating-point numbers

15 lines (14 loc) 372 B
import { Rational } from "./Rational.mjs"; interface CohortAndQuantum { cohort: "0" | "-0" | Rational; quantum: number; } export declare class Decimal { readonly cohort: "0" | "-0" | Rational; readonly quantum: number; constructor(x: string | CohortAndQuantum); negate(): Decimal; coefficient(): bigint; isNegative(): boolean; } export {};