Next: SCAN, Previous: SAME_TYPE_AS, Up: Intrinsic Procedures [Contents][Index]
SCALE
— Scale a real valueSCALE(X,I)
returns X * RADIX(X)**I
.
Fortran 95 and later
Elemental function
RESULT = SCALE(X, I)
X | The type of the argument shall be a REAL . |
I | The type of the argument shall be a INTEGER . |
The return value is of the same type and kind as X.
Its value is X * RADIX(X)**I
.
program test_scale real :: x = 178.1387e-4 integer :: i = 5 print *, scale(x,i), x*radix(x)**i end program test_scale