UNPKG

decimal128

Version:

Partial implementation of IEEE 754 Decimal128 decimal floating-point numbers

10 lines (9 loc) 548 B
export declare function countFractionalDigits(s: string): number; export type Digit = -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; export declare const ROUNDING_MODE_CEILING = "ceil"; export declare const ROUNDING_MODE_FLOOR = "floor"; export declare const ROUNDING_MODE_TRUNCATE = "trunc"; export declare const ROUNDING_MODE_HALF_EVEN = "halfEven"; export declare const ROUNDING_MODE_HALF_EXPAND = "halfExpand"; export type RoundingMode = "ceil" | "floor" | "trunc" | "halfEven" | "halfExpand"; export declare const ROUNDING_MODES: RoundingMode[];