pub type NumDecimals = usize;
Expand description
Decimals are represented as usize. This type is also used as variable decimals.
Trait Implementations§
Source§impl Decimals for NumDecimals
impl Decimals for NumDecimals
Source§fn num_decimals(&self) -> NumDecimals
fn num_decimals(&self) -> NumDecimals
Number of decimals as variable.
Source§fn scaling_factor<M: ManagedTypeApi>(
&self,
) -> ManagedRef<'static, M, BigUint<M>>
fn scaling_factor<M: ManagedTypeApi>( &self, ) -> ManagedRef<'static, M, BigUint<M>>
10^num_decimals, represented as a
BigUint
.