angular
angular copied to clipboard
[BUG] multipleOf 0.1 validation is throwing "not a multiple of 0.1" error on certain values (0.3, 0.6, 0.7) & more
Environment
Please provide as many details as you can:
number field throwing incorrect errors: multipleOf 0.1 validation is throwing "not a multiple of 0.1" error on certain values (0.3, 0.6, 0.7) & more
- Hosting type
- [x] Form.io
- [ ] Local deployment
- Version:
- Formio.js version: 7.15.1
- Frontend framework: Angular
- Browser: Chrome - 84.0.4147.105
- Browser version: - 84.0.4147.105
Steps to Reproduce
- create a number field using the validation of multipleOf = 0.1
- insert value 0.3 into the field
- observe error "not a multiple of 0.1"
Expected behavior
I should only see multipleOf errors when the entered number violates the validation
Observed behavior
I see the error thrown on multiple valid multiples of 0.1