News for hackers. Stuff that matters.
Re:Ask HN: Do you use JSON Schema? Help us shape its future ... by awwright on Tuesday January 31, 2023 @10:40PM (#34606050)
The behavior is perfectly well defined... there's no special cases for integers vs. rational numbers, they're all the same.

For example, given multipleOf: 0.3, and an input of 0.9, 0.9/0.3 is 3, which is an integer, so would be accepted. A value of 0.8 would be rejected.

Re:Ask HN: Do you use JSON Schema? Help us shape its future ... by throwawaymaths on Tuesday January 31, 2023 @10:58PM (#34606172)
0.3 is not the same thing as 3/10 in ieee754, neither is 0.1 the same as 1/10.