[][src]Function cw20_bonding::curves::decimal

pub fn decimal<T: Into<u128>>(num: T, scale: u32) -> Decimal

decimal returns an object = num * 10 ^ -scale We use this function in contract.rs rather than call the crate constructor itself, in case we want to swap out the implementation, we can do it only in this file.