function y = isfloat(x)
% MATLAB Code Generation Library function.

%ISFLOAT  True for FI object with "double" or "single" as the datatype input.
%   ISFLOAT(X) returns 1 if X is a FI object with datatype == double or single;
%              and 0 if X is a FI object with datatype != double nor single.
%
%   Examples:
%     x = fi(pi, 'DataType','double');
%     isfloat(x)
%
%   Copyright 2002-2014 The MathWorks, Inc.
%#codegen

coder.extrinsic('strcmpi');

eml_invariant(nargin == 1, 'fixed:coder:incorrectNumberOfInputs');

T = eml_typeof(x);
y = coder.const(strcmpi(get(T, 'DataType'), 'Single')) ||  coder.const(strcmpi(get(T, 'DataType'), 'Double')); 
    
  
  
