Arithmetic involving integer and real operands

前端 未结 3 1384
一向
一向 2021-01-21 01:54

In Fortran, will arithmetic involving an integer and real operand be always carried out by converting the integer operand to a real value of t

3条回答
  •  -上瘾入骨i
    2021-01-21 02:30

    Yes, with the intrinsic arithmetic operators the result type of an expression involving an integer and real operand is always real of the same kind as the real operand.

提交回复
热议问题