Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

wad_mul

Multiplies two wad, rounding half up to the nearest wad

Arguments

  • a Wad
  • b Wad

Returns

  • a*b, in wad

Fully qualified path: alexandria_math::wad_ray_math::wad_mul

pub fn wad_mul(a: u256, b: u256) -> u256