インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス

SET_EXPONENT

Elemental Intrinsic Function (Generic): Returns the value of the exponent part (of the model for the argument) set to a specified value.

result = SET_EXPONENT (x,i)

x

(Input) Must be of type real.

i

(Input) Must be of type integer.

Results

The result type and kind are the same as x. The result has the value x x b i-e. Parameters b and e are defined in Model for Real Data. If x has the value zero, the result is zero.

Example

If 3.0 is a REAL(4) value, SET_EXPONENT (3.0, 1) has the value 1.5.

See Also