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