lib/embulk/input/lkqd.rb in embulk-input-lkqd-0.8.0 vs lib/embulk/input/lkqd.rb in embulk-input-lkqd-0.8.1
- old
+ new
@@ -95,10 +95,10 @@
elsif column_option['type'] == 'long'
next value.gsub(',','').to_i
elsif column_option['type'] == 'double' && value.match(/%$/) # handle x,xxxx.yy%
next value.gsub(',','').to_f / 100.0
elsif column_option['type'] == 'double' && value.match(/^\$[\d\.,]+$/) # handle $x,xxxx.yy%
- next value.gsub(/[$,]/,'').to_f / 100.0
+ next value.gsub(/[$,]/,'').to_f
elsif column_option['type'] == 'double'
next value.gsub(',','').to_f
else
next value
end