Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

wad_div

Divides 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_div

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