> For the complete documentation index, see [llms.txt](https://docs.fringe.fi/v2-smart-contract-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fringe.fi/v2-smart-contract-documentation/util/carefulmath.md).

# CarefulMath

## Overview

#### License: MIT

```solidity
contract CarefulMath
```

Author: Compound

Derived from OpenZeppelin's SafeMath library <https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol>

## Enums info

### MathError

```solidity
enum MathError {
	 NO_ERROR,
	 DIVISION_BY_ZERO,
	 INTEGER_OVERFLOW,
	 INTEGER_UNDERFLOW
}
```
