| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
n = realmax
n = realmax returns the largest floating-point number representable on your computer. Anything larger overflows.
realmax('double') is the same as realmax with no arguments.
realmax('single') is the largest single precision floating point number representable on your computer. Anything larger overflows to single(Inf).
realmax is one bit less than 21024 or about 1.7977e+308.
The realmax function is equivalent to pow2(2-eps,maxexp), where maxexp is the largest possible floating-point exponent.
Execute type realmax to see maxexp for various computers.
![]() | reallog | realmin | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |