Largest positive floating-point number
f = realmax
f = realmax(precision)
example
f = realmax returns the largest finite floating-point number in IEEE® double precision. This is equal to (2-2^(-52))*2^1023.
f
(2-2^(-52))*2^1023
f = realmax(precision) returns the largest finite floating-point number in IEEE single or double precision. This is equal to realmax for double precision, and to single((2-2^(-23))*2^127) for single precision.
precision
realmax
single((2-2^(-23))*2^127)
collapse all
Set the output format to long scientific notation. Return the largest finite floating-point number in IEEE® double precision.
format long e f = realmax
f = 1.797693134862316e+308
Return the largest finite floating-point number in IEEE® single precision.
f = realmax('single')
f = single 3.4028e+38
Check the class of f.
class(f)
ans = 'single'
'double'
'single'
Floating-point precision type, specified as 'double' or 'single'.
flintmax | format | intmax | realmin
flintmax
format
intmax
realmin
You have a modified version of this example. Do you want to open this example with your edits?