%% Determine Whether Numbers Are Floating-Point Type
% These examples show the values isfloat returns when passed specific types:

% pi returns a floating-point value
isfloat(pi)
% Complex numbers are floating-point values
isfloat(3+7i)
% Single-precision numbers are floating-point values
isfloat(realmax('single'))
% isfloat returns a logical value
isfloat(isfloat(pi))

%
% Copyright 2020 The MathWorks, Inc.