DADiSP Worksheet Functions > Function Categories > Machine Metrics > REALMAX

 

REALMAX

Purpose:

Returns the largest positive real number.

Syntax:

REALMAX("precision")

"precision"

-

Optional, a string, the real number precision.

"single"

:

single precision

"double"

:

double precision (default)

Returns:

A real, the largest positive value less than inf.

Example:

realmax + realmax

 

returns inf.

Example:

realmax > inf

 

returns 0.0

Remarks:

Any operation resulting in a value greater than REALMAX is an overflow and will return INF.

 

REALMAX or REALMAX("double") is one bit less than 2^(1024).

 

REALMAX("single") is one bit less than 2^(128).

See Also:

BITMAX

EPS

INF

REALMIN