number()
Parses number which can be a float with either comma or period.
# File activesupport/lib/active_support/duration/iso8601_parser.rb, line 88 def number PERIOD_OR_COMMA.match?(scanner[1]) ? scanner[1].tr(COMMA, PERIOD).to_f : scanner[1].to_i end