avg
Calculates the arithmetic average of x and y.
*Notes:
- The result is rounded toward zero.*
function avg(SD49x28 x, SD49x28 y) pure returns (SD49x28 result);
Parameters
Name | Type | Description |
---|---|---|
x | SD49x28 | The first operand as an SD49x28 number. |
y | SD49x28 | The second operand as an SD49x28 number. |
Returns
Name | Type | Description |
---|---|---|
result | SD49x28 | The arithmetic average as an SD49x28 number. |