Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipleOf validator uses default remainder operator to validate which results in incorrect result #351

Open
pokermanx opened this issue Feb 16, 2023 · 0 comments

Comments

@pokermanx
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant