div
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
Name | Type | Description |
---|---|---|
x | UD50x28 | The numerator as a UD50x28 number. |
y | UD50x28 | The denominator as a UD50x28 number. |