assertEqual Function

public function assertEqual(x1, x2, n) result(r)

Assert if two numbers are equal.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x1

First number to be compared.

real(kind=dp), intent(in) :: x2

Second number to be compared.

integer(kind=int32), intent(in) :: n

Number of digits.

Return Value logical

Comparison result.