Commit 99e60fd
fix: use epsilon tolerance in multipleOf float validation (#989)
math.Mod produces tiny non-zero remainders for valid floats like
0.36 % 0.01 due to IEEE 754 precision, causing false negatives.
Refs: #988
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent c6694fa commit 99e60fd
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
| |||
0 commit comments