Closed baist0 closed 1 year ago
Does fpdec lib has any conversion to another type(isize, u8, i16)?
No. But converting to an int is easy:
use fpdec::Dec; let d: Decimal = Dec!(17.34); let i = d.trunc().coefficient() as i16; println!("{i}");
Does fpdec lib has any conversion to another type(isize, u8, i16)?