mul
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
Name | Type | Description |
---|---|---|
x | UD50x28 | The multiplicand as a UD50x28 number. |
y | UD50x28 | The multiplier as a UD50x28 number. |
Returns
Name | Type | Description |
---|---|---|
result | UD50x28 | The product as a UD50x28 number. |