angular icon indicating copy to clipboard operation
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

Open NeilWoodComputing opened this issue 4 years ago • 0 comments

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

  1. create a number field using the validation of multipleOf = 0.1
  2. insert value 0.3 into the field
  3. 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 Capture

NeilWoodComputing avatar Nov 05 '21 11:11 NeilWoodComputing