Support for integer
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
Currently if a variable is declared as integer in matlab, the exported yaml
code will contain a float.
Changing scan_numeric function correct the problem.
%--------------------------------------------------------------------------
%
%
function result = scan_numeric(r)
if isempty(r)
result = java.util.ArrayList();
elseif(isinteger(r))
result = java.lang.Integer(r);
else
result = java.lang.Double(r);
end
end
Original issue reported on code.google.com by florian....@gmail.com
on 25 Oct 2013 at 7:39
Google Code Exporter commented
thanks for comments, fixed
Original comment by JirkaCig...@gmail.com
on 26 Oct 2013 at 7:21
- Changed state: Fixed