Smallest normalized floating-point number
f = realmin
f = realmin(precision)
example
f = realmin returns the smallest positive normalized floating-point number in IEEE® double precision. This is equal to 2^(-1022).
f
2^(-1022)
f = realmin(precision) returns the smallest positive normalized floating-point number in IEEE single or double precision. This is equal to realmin for double precision, and to single(2^(-126)) for single precision.
precision
realmin
single(2^(-126))
collapse all
Set the output format to long scientific notation. Return the smallest positive normalized floating-point number in IEEE® double precision.
format long e f = realmin
f = 2.225073858507201e-308
Return the smallest positive normalized floating-point number in IEEE® single precision.
f = realmin('single')
f = single 1.1755e-38
Check the class of f.
class(f)
ans = 'single'
'double'
'single'
Floating-point precision type, specified as 'double' or 'single'.
eps | format | intmin | realmax
eps
format
intmin
realmax
You have a modified version of this example. Do you want to open this example with your edits?