Type alias EqualityOptions

EqualityOptions: {
    precision: number;
    unit: number;
}

Type declaration

  • precision: number

    The precision to use when comparing the two numbers.
    The precision is the number of binary places to compare.

  • unit: number

    Used when comparing to zero is needed.
    A number is considered zero if unit + number is equal to unit according to precision specified.

Generated using TypeDoc