Skip to content

Commit

Permalink
docs: add note clarifying multipleOf implementation (#1206)
Browse files Browse the repository at this point in the history
* docs: add note clarifying multipleOf implementation

add a note explaining the difference between float-point implementation of programming languages and json schema

* fix: reword note on numerical precision

* fix: clarify wording in numerical precision note
  • Loading branch information
inclinedadarsh authored Feb 1, 2025
1 parent 2fa79fd commit a7a92da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/understanding-json-schema/reference/numeric.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ The multiple can be a floating point number:
4.021
```

<Infobox label="Note"> The JSON Specification defines numerical precision independently of the IEEE 754 standard. This means developers do not need to worry about the typical limitations of floating-point arithmetic, such as precision loss or representation errors, which are common in most programming languages. </Infobox>

<Keywords label="single: number; range single: maximum single: exclusiveMaximum single: minimum single: exclusiveMinimum" />

Expand Down

0 comments on commit a7a92da

Please sign in to comment.