-
Notifications
You must be signed in to change notification settings - Fork 327
Closed
Description
Describe the bug
This code does not seem to accurately calculate if a number is a multipleOf in the case of float numbers. A value of 0.9 with a multipleOf is flagged, because 0.9 % 0.05 === 0.05 in javascript.
Expected Behavior
Value of 0.9 is not flagged.
Current Behavior
Value of 0.9 is flagged.
Steps to Reproduce
- Create schema with multipleOf 0.05
- Set value of 0.9
- The value is flagged as not being a multiple of 0.05
Environment
- Windows
- Mac
- Linux
- other (please specify)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels