mul

Git Source

Multiplies two UD50x28 numbers together, 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}.*

See the documentation in {Common.mulDiv18}.

function mul(UD50x28 x, UD50x28 y) pure returns (UD50x28 result);

Parameters

NameTypeDescription
xUD50x28The multiplicand as a UD50x28 number.
yUD50x28The multiplier as a UD50x28 number.

Returns

NameTypeDescription
resultUD50x28The product as a UD50x28 number.