use rust_decimal::Decimal; fn main() -> std::io::Result<()> { let a = Decimal::new(1234, 3); let b = a.serialize(); println!("{a}, {b:?}"); Ok(()) }