UNPKG

decimal128

Version:

Partial implementation of IEEE 754 Decimal128 decimal floating-point numbers

16 lines (15 loc) 395 B
import JSBI from "jsbi"; 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(): JSBI; isNegative(): boolean; } export {};