# UnsafeMath

Contains methods that perform common math functions but do not do any overflow or underflow checks

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/core/libraries/UnsafeMath#functions) <a href="#functions" id="functions"></a>

#### divRoundingUp[​](https://docs.uniswap.org/contracts/v3/reference/core/libraries/UnsafeMath#divroundingup) <a href="#divroundingup" id="divroundingup"></a>

```solidity
  function divRoundingUp(
    uint256 x,
    uint256 y
  ) internal pure returns (uint256 z)
```

Returns ceil(x / y)

panics if y == 0

**Parameters:**[**​**](https://docs.uniswap.org/contracts/v3/reference/core/libraries/UnsafeMath#parameters)

| Name | Type    | Description  |
| ---- | ------- | ------------ |
| `x`  | uint256 | The dividend |
| `y`  | uint256 | The divisor  |

**Return Values:**[**​**](https://docs.uniswap.org/contracts/v3/reference/core/libraries/UnsafeMath#return-values)

| Name | Type    | Description               |
| ---- | ------- | ------------------------- |
| `z`  | uint256 | The quotient, ceil(x / y) |
