realmax

Purpose

Largest positive floating-point numbers.

Synopsis

n = realmax

Description

realmax is the largest floating-point number representable on a particular computer. Anything larger overflows.

Examples

On machines with IEEE floating-point format, realmax is one bit less than 2^1024 or about 1.7977e+308.

Algorithm

realmax is pow2(2-eps,maxexp) where maxexp is the largest possible floating-point exponent.

Execute type realmax to see maxexp for various computers.

See Also

eps, log2, pow2, realmin

(c) Copyright 1994 by The MathWorks, Inc.