/// Converts the amount to a given unit
Converts the amount to a given unit
Converts the amount to a given unit
pub fn to(&self, units: Units) -> f64 {
        match units {
            Units::Bch => self.0 as f64 / 100_000_000.,
            Units::Bits => self.0 as f64 / 100.,
            Units::Sats => self.0 as f64,
            Units::Eth => self.0 as f64 / 100_000_000.,
        }
    }
pub fn to ( & self , units : Units ) -> f64 { match units { Units :: Bch => self . 0 as f64 / 100_000_000. , Units :: Bits => self . 0 as f64 / 100. , Units :: Sats => self . 0 as f64 , Units :: Eth => self . 0 as f64 / 100_000_000. , } }
Converts the amount to a given unit
Converts the amount to a given unit
&self
units
Units