Type Alias fraction::prelude::BigDecimal

source ·
pub type BigDecimal = GenericDecimal<BigUint, usize>;
Expand description

Heap allocated BigUint for numerics and usize for precision

§Examples

use fraction::BigDecimal;

let one = BigDecimal::from(11.5);
let two = BigDecimal::from(30.5);

assert_eq!(one + two, BigDecimal::from(42));

Aliased Type§

struct BigDecimal(/* private fields */);