Sun Studio 12: Fortran Library Reference

1.4.28 inmax: Return Maximum Positive Integer

The function is called by:

m = inmax()

Return value 

INTEGER*4

Output 

The maximum positive integer 

Example: inmax:


demo% cat tinmax.f
       INTEGER*4 inmax, m
       m = inmax()
       write(*,*) m
       end
demo% f95 tinmax.f
demo% a.out
   2147483647
demo%

See also libm_single(3F) and libm_double(3F). See also the non-standard FORTRAN 77 intrinsic function ephuge() described in Chapter 3.