parse 5.0 as a Float
This commit is contained in:
parent
63da2d408b
commit
5d4c978c76
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ module Rpl
|
|||
|
||||
begin
|
||||
parsed_entry[:value] = Float( parsed_entry[:value] )
|
||||
parsed_entry[:value] = parsed_entry[:value].to_i if (parsed_entry[:value] % 1).zero? && elt.index('.').nil?
|
||||
rescue ArgumentError
|
||||
parsed_entry[:value] = Integer( parsed_entry[:value] )
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue