ajsf
ajsf copied to clipboard
multipleOf validator uses default remainder operator to validate which results in incorrect result
Describe the bug which template:
[X] AJSF Core
To Reproduce
Have a multipleOf validator in your schema that is, say, equals to 0.01. Input and validate values like 0.05, 0.06, 0.07
Expected behavior
Not error out on valid input.
- Browser Chrome
- Version 0.8.0
Possible Implementation Multiply both parts till they are not decimals and then do the remainder and zero comparison