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 = 1.7977e+308 nsingle = 3.4028e+38