Visible to Intel only — GUID: GUID-E80CC844-C7A6-46C7-9FD6-116C45C93DFC
Visible to Intel only — GUID: GUID-E80CC844-C7A6-46C7-9FD6-116C45C93DFC
IEEE_SCALB
Elemental Module Intrinsic Function (Generic): Returns the exponent of a radix-independent floating-point number. This is equivalent to the IEEE scalb function.
Module
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_SCALB (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 is x multiplied by 2**i, if the value can be represented as a normal number.
If x (2**i) is too small and there is a loss of accuracy, the exception IEEE_UNDERFLOW is signaled. The result value is the nearest number that can be represented with the same sign as x.
If x is finite and x (2**i) is too large, an IEEE_OVERFLOW exception occurs. If IEEE_SUPPORT_INF (x) is true, the result value is infinity with the same sign as x; otherwise, the result value is SIGN (HUGE(x), x).
If x is infinite, the result is the same as x; no exception is signaled.
Example
The value of IEEE_SCALB (2.0,3) is 16.0.