%% Determine Whether Real Number Is Integer Type
% Determine if a real number is an integer type.

TF = isinteger(2)

% MATLAB® stores a real number as a double type by default.
% Convert the number to a signed 8-bit integer type using the int8 function. Check if it is an integer type.

TF = isinteger(int8(2))

%
% Copyright 2018 The MathWorks, Inc.