Checks if two floating point numbers of type double are close within tolerance.
Based on python implementation at https://github.com/PythonCHB/close_pep/blob/master/is_close.py. The method='weak' option is used here.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in) | :: | a | |||
real(kind=rp), | intent(in) | :: | b | |||
real(kind=rp), | intent(in), | optional | :: | rel_tol | Relative tolerance, |
|
real(kind=rp), | intent(in), | optional | :: | abs_tol | Absolute tolerance, |