You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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
Environment
The text was updated successfully, but these errors were encountered: