Skip to content

Commit

Permalink
fix parsing of reals in stringReal
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Feb 5, 2020
1 parent 3d9eed6 commit c91144f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metaRuntime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ end
""" This function fails unless the whole string can be consumed by strtod without
setting errno. For more details, see man 3 strtod """
function stringReal(str::String)::ModelicaReal
local r::ModelicaReal = Float64(str)
local r::ModelicaReal = parse(Float64, str)
r
end

Expand Down

0 comments on commit c91144f

Please sign in to comment.