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

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

Contents


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

NAME    [Toc]    [Back]

     DIGITS - Returns the number of significant	digits

SYNOPSIS    [Toc]    [Back]

     DIGITS ([X=]x)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The DIGITS	intrinsic function returns the number of significant digits
     in	the model representing numbers of the same type	and kind type
     parameter as the argument.	 The number returned is	the number of
     significant radix digits (base 2 digits), not decimal digits.  It
     accepts the following argument:

     x	  Must be of type integer or real.  It can be scalar or	array
	  valued.

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

RETURN VALUES    [Toc]    [Back]

     The result	type is	an integer scalar.  The	result has the value q if x
     is	of type	integer.  It has the value p if	x is of	type real.  The
     values q and p are	defined	on the MODELS(3I) man page.

EXAMPLES    [Toc]    [Back]

     The following code	fragment was run on several systems:

	  INTEGER(KIND=1) i1
	  INTEGER(KIND=2) i2
	  INTEGER(KIND=4) i4
	  INTEGER(KIND=8) i8
	  INTEGER id
	  PRINT	*,'DIGITS i1=',DIGITS(i1)
	  PRINT	*,'DIGITS i2=',DIGITS(i2)
	  PRINT	*,'DIGITS i4=',DIGITS(i4)
	  PRINT	*,'DIGITS i8=',DIGITS(i8)
	  PRINT	*,'DIGITS id=',DIGITS(id)
	  END

     IRIX systems generated the	following results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 31

     CRAY T90 systems that support IEEE	floating-point arithmetic generated
     the following results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 63

     UNICOS systems, except for	CRAY T90 systems that support IEEE
     floating-point arithmetic,	generated the following	results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 63

     UNICOS/mk systems generated the following results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 63

SEE ALSO    [Toc]    [Back]

      
      
     MODELS(3I)

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

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

NAME    [Toc]    [Back]

     DIGITS - Returns the number of significant	digits

SYNOPSIS    [Toc]    [Back]

     DIGITS ([X=]x)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The DIGITS	intrinsic function returns the number of significant digits
     in	the model representing numbers of the same type	and kind type
     parameter as the argument.	 The number returned is	the number of
     significant radix digits (base 2 digits), not decimal digits.  It
     accepts the following argument:

     x	  Must be of type integer or real.  It can be scalar or	array
	  valued.

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

RETURN VALUES    [Toc]    [Back]

     The result	type is	an integer scalar.  The	result has the value q if x
     is	of type	integer.  It has the value p if	x is of	type real.  The
     values q and p are	defined	on the MODELS(3I) man page.

EXAMPLES    [Toc]    [Back]

     The following code	fragment was run on several systems:

	  INTEGER(KIND=1) i1
	  INTEGER(KIND=2) i2
	  INTEGER(KIND=4) i4
	  INTEGER(KIND=8) i8
	  INTEGER id
	  PRINT	*,'DIGITS i1=',DIGITS(i1)
	  PRINT	*,'DIGITS i2=',DIGITS(i2)
	  PRINT	*,'DIGITS i4=',DIGITS(i4)
	  PRINT	*,'DIGITS i8=',DIGITS(i8)
	  PRINT	*,'DIGITS id=',DIGITS(id)
	  END

     IRIX systems generated the	following results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 31

     CRAY T90 systems that support IEEE	floating-point arithmetic generated
     the following results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 63

     UNICOS systems, except for	CRAY T90 systems that support IEEE
     floating-point arithmetic,	generated the following	results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 63

     UNICOS/mk systems generated the following results:

	  DIGITS i1= 7
	  DIGITS i2= 15
	  DIGITS i4= 31
	  DIGITS i8= 63
	  DIGITS id= 63

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
precision IRIX Returns the decimal precision of a number in the real number model
radix IRIX Returns the base number from the real or integer number models
Dialcodes Tru64 Contains the initial digits of telephone numbers used to establish remote connections over a telepho...
getplanes IRIX returns the number of available bitplanes
getmap IRIX returns the number of the current color map
length IRIX Returns the number of words transferred
dmPMGetPluginCount IRIX returns the number of initialized plugins
strlen Tru64 General: Returns the number of characters in a
DXmSvnGetEntryTag Tru64 Retrieves (returns) an entry's tag for a specified entry number.
DXmSvnGetNumSelections Tru64 Retrieves (returns) the number of selected entries.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service