liangzimei / yamlmatlab

Automatically exported from code.google.com/p/yamlmatlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for integer

GoogleCodeExporter opened this issue · comments

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

thanks for comments, fixed

Original comment by JirkaCig...@gmail.com on 26 Oct 2013 at 7:21

  • Changed state: Fixed