exponent(3f) - [FORTRAN:INTRINSIC:MODEL_COMPONENTS] Exponent function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
result = exponent(x)
exponent(x) returns the value of the exponent part of X. If X is zero the value returned is zero.
X - The type shall be REAL.
The return value is of type default INTEGER.
Sample program:
program demo_exponent real :: x = 1.0 integer :: i i = exponent(x) print *, i print *, exponent(0.0) end program demo_exponent
[[Fortran 95]] and later
[[Elemental procedure|Elemental function]]
exponent (3) | March 18, 2019 |