qreal128 == qreal64 operator.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(qreal128), | intent(in) | :: | lhs | Left hand side. |
||
| type(qreal64), | intent(in) | :: | rhs | Right hand side. |
Operator result.
function qreal128_eq_qreal64(lhs, rhs) result(opr)
!---------------------------------------------------------------------------------------------------------------------------------
!< `qreal128 == qreal64` operator.
!---------------------------------------------------------------------------------------------------------------------------------
type(qreal128), intent(in) :: lhs !< Left hand side.
type(qreal64), 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_qreal64