UNPKG

@numio/bigmath

Version:

@numio/bigmath is an arbitrary-precision arithmetic library. It can be used for basic operations with decimal numbers (integers and float)

7 lines (6 loc) 266 B
import { s2bi } from "../shared/utils.js"; import { isEqualInner } from "./utils.js"; /** This function returns if left and right values are equal */ export const isEqual = ({ left, right }) => { return isEqualInner({ left: s2bi(left), right: s2bi(right) }); };