sevnpy.check_equality

sevnpy.utility.utility.check_equality(val1: float | int, val2: float | int) bool[source]

Check if two numbers can be considered equal taking into account the machine precision

Parameters:
  • val1 – First value

  • val2 – Second value

Returns:

result – If the two values are equal within the machine precision

Return type:

bool