@lakuna/umath
    Preparing search index...

    Function approxRelative

    • Determine whether or not two numbers are approximately equivalent relative to the size of the numbers (no greater than epsilon * Math.max(1, Math.abs(a), Math.abs(b)) apart).

      Parameters

      • a: number

        The first number.

      • b: number

        The second number.

      Returns boolean

      Whether or not the two numbers are approximately equivalent.