Type Alias multiversx_sc::types::NumDecimals
source · 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.