Module: Incline::NumberFormats
- Defined in:
- lib/incline/number_formats.rb
Constant Summary collapse
- WITH_DELIMITERS =
Verifies a number with comma delimiters included.
1,234,567.89e0
/\A[+-]?(0|[1-9][0-9]{0,2}(,[0-9]{3})*)(\.[0-9]*)?(e\d+)?\z/i
- WITHOUT_DELIMITERS =
Verifies a number without comma delimiters included.
1234567.89e0
/\A[+-]?([0-9]+)(\.[0-9]*)?(e\d+)?\z/i