Manual Reference Pages  - tiny (3fortran)

NAME

TINY(3) - [NUMERIC MODEL] Smallest positive number of a real kind

SYNOPSIS

result = tiny(x)

         real(kind=KIND) function tiny(x)

real(kind=KIND) :: x

CHARACTERISTICS

o X may be any real scalar or array
o the result has the same type and kind as X

DESCRIPTION

TINY(3) returns the smallest positive (non zero) number of the type and kind of X.

For real X

       result = 2.0**(minexponent(x)-1)

OPTIONS

o X : The value whose kind is used to determine the model type to query

RESULT

The smallest positive value for the real type of the specified kind.

EXAMPLES

Sample program:

    program demo_tiny
    implicit none
       print *, ’default real is from’, tiny(0.0), ’to’,huge(0.0)
       print *, ’doubleprecision is from ’, tiny(0.0d0), ’to’,huge(0.0d0)
    end program demo_tiny

Results:

     default real is from 1.17549435E-38 to 3.40282347E+38
     doubleprecision is from 2.2250738585072014E-308 to
     1.7976931348623157E+308

STANDARD

Fortran 95

SEE ALSO

DIGITS(3), EPSILON(3), EXPONENT(3), FRACTION(3), HUGE(3), MAXEXPONENT(3), MINEXPONENT(3), NEAREST(3), PRECISION(3), RADIX(3), RANGE(3), RRSPACING(3), SCALE(3), SET_EXPONENT(3), SPACING(3)

fortran-lang intrinsic descriptions (license: MIT) @urbanjost


Nemo Release 3.1 tiny (3fortran) April 28, 2024
Generated by manServer 1.08 from 92288bde-a3a1-4212-bc22-8aa655fdff5a using man macros.