UNPKG

calculate-asmd

Version:

The precise addition, subtraction, multiplication and division of JavaScript avoids the error of floating point calculation

6 lines (5 loc) 386 B
export const scaleNum: (number: number | string, position: number | string) => number export const add: (arg1: number | string, arg2: number | string) => number export const sub: (arg1: number | string, arg2: number | string) => number export const mul: (arg1: number | string, arg2: number | string) => number export const div: (arg1: number | string, arg2: number | string) => number