[UP]


Manual Reference Pages  - huge (3)

NAME

huge(3f) - [FORTRAN:INTRINSIC:NUMERIC MODEL] Largest number of a kind

SYNTAX

result = huge(x)

DESCRIPTION

huge(x) returns the largest number that is not an infinity in the model of the type of X.

ARGUMENTS

X Shall be of type REAL or INTEGER.

RETURN VALUE

The return value is of the same type and kind as X

EXAMPLE

Sample program:

    program demo_huge_tiny
    implicit none
      print *, huge(0), huge(0.0), huge(0.0d0)
      print *, tiny(0.0), tiny(0.0d0)
    end program demo_huge_tiny

STANDARD

[[Fortran 95]] and later

CLASS

[[Inquiry function]]


huge (3) March 11, 2021
Generated by manServer 1.08 from 8251066f-6aa2-4f6d-85e1-a58f1c9cbe17 using man macros.