div

Git Source

Divides two UD50x28 numbers, returning a new UD50x28 number.

*Uses {Common.mulDiv} to enable overflow-safe multiplication and division. Notes:

  • Refer to the notes in {Common.mulDiv}. Requirements:
  • Refer to the requirements in {Common.mulDiv}.*
function div(UD50x28 x, UD50x28 y) pure returns (UD50x28 result);

Parameters

NameTypeDescription
xUD50x28The numerator as a UD50x28 number.
yUD50x28The denominator as a UD50x28 number.