Numeric intrinsics

Array intrinsics

Inquiry intrinsics

Using the reference

The entries above are the intrinsics that appear most often in everyday Fortran. Each takes the standard types and returns the type its name suggests; element-wise functions such as sqrt are elemental, meaning they work on a whole array as easily as on a scalar. A short example:

program quick_example implicit none real :: x = -3.5 integer :: r r = mod(10, 4) print *, 'abs of x: ', abs(x) print *, '10 mod 4: ', r end program quick_example

For the surrounding language features these intrinsics operate on, see Arrays and Intrinsic Functions.