XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-4.36.1) [xmmsas_20230412_1735-21.0.0]


isNearlyEqual(): Comparing numbers with a given precision

This function returns .true. if the given pair of values agree with each other in the given precision (order), or .false. otherwise.

  LOGICAL(bool) FUNCTION isNearlyEqual(cmp, compared, precision)
    REAL,    intent(in) :: cmp, compared   ! or INTEGER
    INTEGER, intent(in) :: precision
  END FUNCTION isNearlyEqual

For the pair of the first two arguments, any combination of int8, int16, int32, single and double is allowed.



Subsections

XMM-Newton SOC -- 2023-04-16