Navigation

Operators and Keywords

Function List:

C++ API

: realmax
: realmax (n)
: realmax (n, m)
: realmax (n, m, k, …)
: realmax (…, class)

Return a scalar, matrix, or N-dimensional array whose elements are all equal to the largest floating point number that is representable.

The actual value is system dependent. On machines that support IEEE floating point arithmetic, realmax is approximately 1.7977e+308 for double precision and 3.4028e+38 for single precision.

When called with no arguments, return a scalar with the value realmax ("double").

When called with a single argument, return a square matrix with the dimension specified.

When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions.

The optional argument class specifies the return type and may be either "double" or "single".

See also: realmin, intmax, flintmax, eps.

Package: octave