Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

realmax

Largest positive floating-point number

Syntax

n = realmax

Description

n = realmax returns the largest finite floating-point number in IEEE® double precision.

realmax('double') is the same as realmax with no arguments.

realmax('single') returns the largest finite floating-point number in IEEE single precision.

Examples

Find the value of the constant realmax:

ndouble = realmax
nsingle = realmax('single')
ndouble =

  1.7977e+308


nsingle =

  3.4028e+38

Related Examples

See Also

| |

Introduced before R2006a

Was this topic helpful?