Boost.Multiprecision support #4480
zxffffffff
started this conversation in
General
Replies: 1 comment
-
|
Looking into this. (Also linking this to our existing tracking item for user-defined/custom number types, since arbitrary-precision support like Boost.Multiprecision would build on the same underlying mechanism.) This reply was drafted by Claude Code on behalf of @nlohmann, as part of a review of open discussions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The precision issues with
floatanddoublehave long been a challenging aspect of programming, particularly when JSON is used for network transmission, Java'sBigDecimaloften gets converted tonumber, but there isn't a well-suited solution on the C++ side.I've typically used a workaround involving
json_dump() -> parse_string() -> cpp_dec_float_50, which is rather inelegant. It would be ideal if a JSON library, known for its ease of use, could natively support this.Beta Was this translation helpful? Give feedback.
All reactions