Description
Aallow users to enter the Cost using either a comma (,) or a decimal point (.) as the separator for fractional values. This change applies only at the survey level.
Validation Cases
• Users must be able to enter the amount for cost using:
- Allowed formats:
- Decimal point: 123.45
- Comma as decimal: 123,45
- Commas as thousand separators: 1,000 or 1,000.00
- Both formats should be accepted without error.
o Validation constraints:
- Only one decimal separator (either . or ,) is allowed.
- Maximum two digits after decimal.
- Multiple commas are allowed for thousand separators, but the last comma can act as decimal if followed by up to two digits.
o Valid Inputs
- 10000 → integer
- 10,000 → thousand separator
- 10,000.00 → thousand + decimal point
- 00 → decimal point
- 10000,00 → decimal comma
Whole numbers
- 10
- 100
- 1000
- 10000
- 100000
- 1000000
Decimal formats
- 1,0 → 1
- 1.0 → 1
- 1,00 → 1
- 1.00 → 1
Thousand separators
- 1,000 → 1000
- 1.000 → 1000
Mixed formats
- 1,000,0 -> 1000
- 1.000.0 -> 1000
- 1,000,00 -> 1000
- 1.000.00 -> 1000
o Invalid Inputs-
- 1000,000
- 100,0000
- 1,0000
