Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-BB68A65D-864E-4253-BC64-D062D5ADEA86
Visible to Intel only — GUID: GUID-BB68A65D-864E-4253-BC64-D062D5ADEA86
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