I need a variable type in Rust to store decimal numbers, and ability to operates it easily like:
let a = Decimal("120.0"); let b = Decimal("20.05"); let c = Decimal("1.05") + a + b; // c will be 141.1
Rust Decimals (GitHub - paupino/rust-decimal: A Decimal Implementation written in pure Rust suitable for financial calculations.) as far as I know doesn't have this function. Is it possible to "overwrite" the basic math operations so it will be compatible with Decimals ? or is there any other way around this ?