mul

Git Source

Multiplies two SD49x28 numbers together, returning a new SD49x28 number.

*Notes:

  • Refer to the notes in {Common.mulDiv18}. Requirements:
  • Refer to the requirements in {Common.mulDiv18}.
  • None of the inputs can be MIN_SD49x28.
  • The result must fit in SD49x28.*
function mul(SD49x28 x, SD49x28 y) pure returns (SD49x28 result);

Parameters

NameTypeDescription
xSD49x28The multiplicand as an SD49x28 number.
ySD49x28The multiplier as an SD49x28 number.

Returns

NameTypeDescription
resultSD49x28The product as an SD49x28 number.