equal_to_n_digits

equal_to_n_digits(x, y, numdigits=7)[source]

Approximate equality check up to a given number of digits.

Parameters:
  • x (float) -- First floating point number

  • y (float) -- Second floating point number

  • numdigits (int) -- Number of digits to check

Returns:

Boolean

Return type:

bool