This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Largest positive floating-point number


n = realmax


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.


Find the value of the constant realmax:

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


nsingle =


Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a