function y = storedIntegerToDouble(u)
% MATLAB Code Generation library function for the @fi/storedIntegerToDouble

% Copyright 2011-2018 The MathWorks, Inc.
%#codegen

% Check for ambiguous types and return with the correct size output
if eml_ambiguous_types
    y = coder.ignoreConst(zeros(size(u)));
    return;
end

if isfi(u)
    y = double(stripscaling(u));
else
    % non-FI datatype not supported
    eml_fi_assert_dataTypeNotSupported('storedIntegerToDouble');
end
