paupino / rust-decimal

Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
https://docs.rs/rust_decimal/
MIT License
972 stars 177 forks source link

Fixes issue with overflow for Postgres #653

Closed paupino closed 5 months ago

paupino commented 5 months ago

Fixes #652 by handling conversion errors explicitly. This still hides the error a little bit bubbling it all up to a ExceedsMaximumPossibleValue however given the limited error functionality avoids additional string allocation / error enum introduction (which is breaking).