Skip to content

_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

ParameterTypeDescription
_valueuint256The value to which the ratio is applied.
_ratiouint256The ratio that must be in the interval [0, 10**6].
ReturnsTypeDescription
resultuint256The resulting value.