Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.