Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wish: serialize decimal crate objects #184

Open
njaard opened this issue May 21, 2020 · 2 comments
Open

Wish: serialize decimal crate objects #184

njaard opened this issue May 21, 2020 · 2 comments

Comments

@njaard
Copy link

njaard commented May 21, 2020

The decimal crate implements decimal floating point arithmetic in rust. JSON supports decimal numbers.

It would be nice if there were an obvious way of how to serialize (and deserialize) d128 objects exactly in your json crate.

Right now, the only obvious way is to first convert to/from f64, which loses precision.

@frewsxcv
Copy link

Related issue: #140

@njaard
Copy link
Author

njaard commented May 26, 2020

Related issue: #140

Also my issue, but I filed both for completely different reasons :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants