TINY(3) - [MODEL:NUMERIC] Smallest positive number of a real kind
result = tiny(x)
real(kind=KIND) function tiny(x)real(kind=KIND) :: x
o X may be any real scalar or array o the result has the same type and kind as X
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)
o X : The value whose kind is used to determine the model type to query
The smallest positive value for the real type of the specified kind.
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_tinyResults:
> default real is from 1.17549435E-38 to 3.40282347E+38 > doubleprecision is from 2.2250738585072014E-308 to > 1.7976931348623157E+308
Fortran 95
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 intrinsic descriptions (license: MIT) @urbanjost
Nemo Release 3.1 | tiny (3fortran) | November 02, 2024 |