[UP]


Manual Reference Pages  - exponent (3)

NAME

exponent(3f) - [FORTRAN:INTRINSIC:MODEL_COMPONENTS] Exponent function

SYNTAX

result = exponent(x)

DESCRIPTION

exponent(x) returns the value of the exponent part of X. If X is zero the value returned is zero.

ARGUMENTS

X The type shall be REAL.

RETURN VALUE

The return value is of type default INTEGER.

EXAMPLE

Sample program:

    program demo_exponent
    implicit none
      real :: x = 1.0
      integer :: i
      i = exponent(x)
      print *, i
      print *, exponent(0.0)
    end program demo_exponent

STANDARD

[[Fortran 95]] and later

CLASS

[[Elemental procedure|Elemental function]]


exponent (3) March 11, 2021
Generated by manServer 1.08 from ba8c51ac-4515-45b2-8d3f-99c4183065d4 using man macros.