UNPKG

@hastom/fixed-point

Version:

Light lib for fixed point math made around native bigint

4 lines (3 loc) 271 B
import { FixedPoint } from './FixedPoint'; export declare const fpFromDecimal: (src: number | string | bigint, dstPrecision: number) => FixedPoint; export declare const fpFromInt: (src: number | string | bigint, srcPrecision: number, dstPrecision: number) => FixedPoint;