qreal32 == qreal128 operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(qreal32), | intent(in) | :: | lhs | Left hand side. |
||
| type(qreal128), | intent(in) | :: | rhs | Right hand side. |
Operator result.
function qreal32_eq_qreal128(lhs, rhs) result(opr)
!---------------------------------------------------------------------------------------------------------------------------------
!< `qreal32 == qreal128` operator.
!---------------------------------------------------------------------------------------------------------------------------------
type(qreal32), intent(in) :: lhs !< Left hand side.
type(qreal128), intent(in) :: rhs !< Right hand side.
logical :: opr !< Operator result.
type(qreal128) :: tmp !< Temporary buffer with high precision.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
tmp = lhs
opr = tmp == rhs
!---------------------------------------------------------------------------------------------------------------------------------
endfunction qreal32_eq_qreal128