*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/range (3)              
Title
Content
Arch
Section
 

Contents


RANGE(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     RANGE - Returns the decimal exponent range	of a number according to
     the real or integer model

SYNOPSIS    [Toc]    [Back]

     RANGE ([X=]x)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The RANGE intrinsic function returns the decimal exponent range in	the
     model representing	integer	or real	numbers	with the same kind type
     parameter as the argument.	 For information on integer number model or
     the real number model, see	the MODELS(3I) man page.  It accepts the
     following argument:

     x	  Must be of type integer, real, or complex.  It may be	scalar or
	  array	valued.

     RANGE is an inquiry function.  The	name of	this intrinsic cannot be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	is a default integer scalar.

     For an integer argument, the result has the value INT(LOG10 (huge)),
     where huge	is the largest positive	integer	in the model representing
     integer numbers with same kind type parameter as x.

     For a real	or complex argument, the result	has the	value
     INT(MIN(LOG10(huge),-LOG10(tiny))), where huge and	tiny are the
     largest and smallest positive numbers in the model	representing real
     numbers with the same value for the kind type parameter as	x.

EXAMPLES    [Toc]    [Back]

     On	UNICOS systems,	excluding CRAY T90 systems that	support	IEEE
     floating-point arithmetic,	RANGE(X) has the value 2465 for	real X.

     On	IRIX systems, RANGE(X) has the following values:

     * 37 for real (KIND=4) X

     * 307 for real (KIND=8) X

     * 291 for real (KIND=16) X

     On	UNICOS/mk systems, RANGE(X) has	the following values:

     * 37 for real (KIND=4) X

     * 307 for real (KIND=8) X

     On	CRAY T90 systems that support IEEE floating-point arithmetic,
     RANGE(X) has the following	values:

     * 37 for real (KIND=4) X

     * 307 for real (KIND=8) X

     * 4931 for	real (KIND=16) X

SEE ALSO    [Toc]    [Back]

      
      
     MODELS(3I)

     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

RANGE(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     RANGE - Returns the decimal exponent range	of a number according to
     the real or integer model

SYNOPSIS    [Toc]    [Back]

     RANGE ([X=]x)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The RANGE intrinsic function returns the decimal exponent range in	the
     model representing	integer	or real	numbers	with the same kind type
     parameter as the argument.	 For information on integer number model or
     the real number model, see	the MODELS(3I) man page.  It accepts the
     following argument:

     x	  Must be of type integer, real, or complex.  It may be	scalar or
	  array	valued.

     RANGE is an inquiry function.  The	name of	this intrinsic cannot be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	is a default integer scalar.

     For an integer argument, the result has the value INT(LOG10 (huge)),
     where huge	is the largest positive	integer	in the model representing
     integer numbers with same kind type parameter as x.

     For a real	or complex argument, the result	has the	value
     INT(MIN(LOG10(huge),-LOG10(tiny))), where huge and	tiny are the
     largest and smallest positive numbers in the model	representing real
     numbers with the same value for the kind type parameter as	x.

EXAMPLES    [Toc]    [Back]

     On	UNICOS systems,	excluding CRAY T90 systems that	support	IEEE
     floating-point arithmetic,	RANGE(X) has the value 2465 for	real X.

     On	IRIX systems, RANGE(X) has the following values:

     * 37 for real (KIND=4) X

     * 307 for real (KIND=8) X

     * 291 for real (KIND=16) X

     On	UNICOS/mk systems, RANGE(X) has	the following values:

     * 37 for real (KIND=4) X

     * 307 for real (KIND=8) X

     On	CRAY T90 systems that support IEEE floating-point arithmetic,
     RANGE(X) has the following	values:

     * 37 for real (KIND=4) X

     * 307 for real (KIND=8) X

     * 4931 for	real (KIND=16) X

SEE ALSO    [Toc]    [Back]

      
      
     MODELS(3I)

     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
minexponent IRIX Returns the minimum (most negative) exponent of a real number in the numeric model
precision IRIX Returns the decimal precision of a number in the real number model
huge IRIX Returns the largest number in the integer or real numeric model
exponent IRIX Returns the exponent part of the argument when represented as a numeric model number
selected IRIX 0- return a kind type parameter given a decimal exponent range or precision.
bit_size IRIX Returns the number of bits in an integer in the bit manipulation model
maxexponent IRIX Returns the maximum exponent in the numeric model
radix IRIX Returns the base number from the real or integer number models
epsilon IRIX Returns a positive number near 1 in the numeric model
spacing IRIX Returns the absolute spacing of real model numbers near the argument value
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service