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