Trait lib_rapid::math::rapidmath::DecimalLeftShift[][src]

pub trait DecimalLeftShift<T> {
    fn dec_lshift(&self) -> T;
}
Expand description

Trait for left-shifting decimal-numbers.

Required methods

Multiplies by 10 (shifts the decimal places to the left by 1) while being more efficient.

Arguments
  • n - The number to be multiplied by 10.
Returns

The new shifted number.

Implementors