# mpdec
Rust wrapper around [libmpdec](https://www.bytereef.org/mpdecimal/index.html) — a high-performance C library for arbitrary-precision decimal floating point arithmetic.
Built on top of raw FFI bindings (`mpdec-sys`), this crate provides idiomatic Rust types and operations for working with decimal numbers with precise rounding behavior and conformance to the [General Decimal Arithmetic Specification](https://speleotrove.com/decimal/).
## Example
```rust
use std::str::FromStr;
use mpdec::Decimal;
fn main() {
let a = Decimal::from_str("1.2345").unwrap();
let b = Decimal::from_str("2.0000").unwrap();
let c = a * b;
println!("Result: {}", c); // Result: 2.4690
}
```