·  Home
+   man pages
 -> Linux -> FreeBSD -> OpenBSD -> NetBSD -> Tru64 Unix -> HP-UX 11i -> IRIX
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

man pages->IRIX man pages -> f90/huge (3)
 Title
 Content
 Arch
 Section All Sections 1 - General Commands 2 - System Calls 3 - Subroutines 4 - Special Files 5 - File Formats 6 - Games 7 - Macros and Conventions 8 - Maintenance Commands 9 - Kernel Interface n - New Commands

### Contents

```
HUGE(3I)					       Last changed: 1-6-98

```

### NAME[Toc][Back]

```     HUGE - Returns the	largest	number in the integer or real numeric model
```

### SYNOPSIS[Toc][Back]

```     HUGE ([X=]x)
```

### IMPLEMENTATION[Toc][Back]

```     UNICOS, UNICOS/mk,	and IRIX systems
```

### STANDARDS[Toc][Back]

```     Fortran 90
```

### DESCRIPTION[Toc][Back]

```     The HUGE intrinsic	function returns the largest number in the model
representing numbers of the same type and kind type parameter as the
argument x.  It accepts the following argument:

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

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

### NOTES[Toc][Back]

```     On	UNICOS systems,	both execution speed and the number of bits used in
mathematical operations are affected when compiling with
see CF90 Commands and Directives Reference	Manual,	publication SR3901.

```

### RETURN VALUES[Toc][Back]

```     The result	is a scalar value of the same type and kind type parameter
as	x.
q
The result	has the	value r	-1 if x	is of type integer and the value
-p		    e sub max
(1-b  ) multiplied	by b	      if x is of type real, where r, q,	b,
p,	and

e	   (represented	as "e sub max" in the previous equation) are
max
as	defined	in the real number model, which	represents numbers of the
same type and kind	type parameter as x.  For more information on the
real number model,	see the	MODELS(3I) man page.
```

### EXAMPLES[Toc][Back]

```     On	UNICOS systems,	HUGE(X)	has a value that approximates
-47		     8189
(1-2   ) multiplied by 2	  for real X.

On	CRAY T90 systems that support IEEE floating-point arithmetic,
HUGE(X) has values	that approximate the following:
-24		       128
* (1-2   )	multiplied by 2	   for real (KIND=4) X
-53		       1024
* (1-2   )	multiplied by 2	    for	real (KIND=8) X
-113			16384
* (1-2    ) multiplied by 2      for real (KIND=16) X

On	UNICOS/mk systems, HUGE(X) has values that approximate the
following:
-24		       128
* (1-2   )	multiplied by 2	   for real (KIND=4) X
-53		       1024
* (1-2   )	multiplied by 2	    for	real (KIND=8) X

On	IRIX systems, HUGE(X) has values that approximate the following:
-24		       128
* (1-2   )	multiplied by 2	   for real (KIND=4) X
-53		       1024
* (1-2   )	multiplied by 2	    for	real (KIND=8) X
-107			1023
* (1-2    ) multiplied by 2     for real (KIND=16)	X
```

```     MODELS(3I)

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

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

```

### NAME[Toc][Back]

```     HUGE - Returns the	largest	number in the integer or real numeric model
```

### SYNOPSIS[Toc][Back]

```     HUGE ([X=]x)
```

### IMPLEMENTATION[Toc][Back]

```     UNICOS, UNICOS/mk,	and IRIX systems
```

### STANDARDS[Toc][Back]

```     Fortran 90
```

### DESCRIPTION[Toc][Back]

```     The HUGE intrinsic	function returns the largest number in the model
representing numbers of the same type and kind type parameter as the
argument x.  It accepts the following argument:

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

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

### NOTES[Toc][Back]

```     On	UNICOS systems,	both execution speed and the number of bits used in
mathematical operations are affected when compiling with
see CF90 Commands and Directives Reference	Manual,	publication SR3901.

```

### RETURN VALUES[Toc][Back]

```     The result	is a scalar value of the same type and kind type parameter
as	x.
q
The result	has the	value r	-1 if x	is of type integer and the value
-p		    e sub max
(1-b  ) multiplied	by b	      if x is of type real, where r, q,	b,
p,	and

e	   (represented	as "e sub max" in the previous equation) are
max
as	defined	in the real number model, which	represents numbers of the
same type and kind	type parameter as x.  For more information on the
real number model,	see the	MODELS(3I) man page.
```

### EXAMPLES[Toc][Back]

```     On	UNICOS systems,	HUGE(X)	has a value that approximates
-47		     8189
(1-2   ) multiplied by 2	  for real X.

On	CRAY T90 systems that support IEEE floating-point arithmetic,
HUGE(X) has values	that approximate the following:
-24		       128
* (1-2   )	multiplied by 2	   for real (KIND=4) X
-53		       1024
* (1-2   )	multiplied by 2	    for	real (KIND=8) X
-113			16384
* (1-2    ) multiplied by 2      for real (KIND=16) X

On	UNICOS/mk systems, HUGE(X) has values that approximate the
following:
-24		       128
* (1-2   )	multiplied by 2	   for real (KIND=4) X
-53		       1024
* (1-2   )	multiplied by 2	    for	real (KIND=8) X

On	IRIX systems, HUGE(X) has values that approximate the following:
-24		       128
* (1-2   )	multiplied by 2	   for real (KIND=4) X
-53		       1024
* (1-2   )	multiplied by 2	    for	real (KIND=8) X
-107			1023
* (1-2    ) multiplied by 2     for real (KIND=16)	X
```

```     MODELS(3I)

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

```
[ Back ]
Similar pages