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

ID 767251
Date 11/07/2023
Public

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

Document Table of Contents

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 are 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