Intel® Fortran Compiler 16.0 User and Reference Guide

SCALE

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

result = SCALE (x,i)

x

(Input) Must be of type real.

i

(Input) Must be of type integer.

Results

The result type and kind is the same as x. The result has the value x x b i. Parameter b is defined in Model for Real Data.

Example

If 3.0 is a REAL(4) value, SCALE (3.0, 2) has the value 12.0 and SCALE (3.0, 3) has the value 24.0.

The following shows another example:

REAL r
r = SCALE(5.2, 2)     ! returns 20.8

See Also