This commit is contained in:
Gwenhael Le Moine 2022-02-02 16:54:25 +01:00
parent 96868a742f
commit 217a4e98ee
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -76,6 +76,7 @@ module Rpl
elsif parsed_entry[:type] == :numeric
parsed_entry[:base] = 10 # TODO: parse others possible bases 0x...
# TODO: store value as BigDecimal
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?