This commit is contained in:
nlohmann committed 2026-10-05 05:14:25 +00:00
1 parent c51ca275d0
commit f99a460b9b
18 files changed
+317 -307

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ With the default values for `NumberFloatType` (`double`), the default value for
This implementation does exactly follow this approach, as it uses double precision floating-point numbers. Note values smaller than `-1.79769313486232e+308` and values greater than `1.79769313486232e+308` will be stored as NaN internally and be serialized to `null`.
During deserialization (from JSON text or any of the binary formats), a finite number that does not fit into `number_float_t` is rejected with [`out_of_range.406`](https://json.nlohmann.me/home/exceptions/#jsonexceptionout_of_range406), for example a double-precision number in a binary format when `number_float_t` is `float`.
### Storage
Floating-point number values are stored directly inside a `basic_json` type.