# File formvalidator.rb, line 690 def filter_neg_decimal(value) value.tr!(',', '.') value.gsub!(/[^\d.-]/, "") value.scan(/(-\d+\.?\d*)/).to_s end