non-gon
    Preparing search index...

    Function ApproximatlyEqual

    • Checks whether two numeric values are approximately equal within a specified margin (epsilon).

      Useful for comparing floating-point values where exact equality is unreliable.

      Parameters

      • a: number

        The first number to compare.

      • b: number

        The second number to compare.

      • Optionalepsilon: number = 0.001

        The maximum allowed difference for the values to be considered equal.

      Returns boolean

      True if the values are approximately equal; otherwise, false.