_applyRatioCeiled
Function · src/common/utils/math/Ratio.sol
Explained in: Ratio (threshold math)
solidity
function _applyRatioCeiled(uint256 _value, uint256 _ratio) pure returns (uint256 result)Applies a ratio to a value and ceils the remainder.
security-contact: sirt@aragon.org
| Parameter | Type | Description |
|---|---|---|
_value | uint256 | The value to which the ratio is applied. |
_ratio | uint256 | The ratio that must be in the interval [0, 10**6]. |
| Returns | Type | Description |
|---|---|---|
result | uint256 | The resulting value. |