mirror of
https://github.com/nlohmann/json.git
synced 2026-10-06 06:30:31 +00:00
deploy: 6b4b825af2
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user