Clicky

Fortran Wiki
exponent (Rev #1, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #0 to #1: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

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

Standard

Fortran 95 and later

Class

Elemental function

Syntax

result = exponent(x)

Arguments

  • x - The type shall be real.

Return value

The return value is of type default integer.

Example

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

category: Intrinsics

Revision from April 24, 2009 16:06:56 by Jason Blevins
Forward in time (to current) | See current | History | Rollback | View: Source | Linked from: Intrinsic procedures

AltStyle によって変換されたページ (->オリジナル) /