Skip to content

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

@pokermanx

Description

@pokermanx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions