pub fn decimal2u128_floor(d: Decimal) -> u128