Trait MulRounded

Source
pub trait MulRounded<Rhs = Self> {
    type Output;

    // Required method
    fn mul_rounded(self, rhs: Rhs, n_frac_digits: u8) -> Self::Output;
}
Expand description

Multiplication giving a result rounded to a given number of fractional digits.

Required Associated Types§

Source

type Output

The resulting type after applying mul_rounded.

Required Methods§

Source

fn mul_rounded(self, rhs: Rhs, n_frac_digits: u8) -> Self::Output

Returns self * rhs, rounded to n_frac_digits.

Implementors§