# chop function

A number with tiny parts replaced by zero.

## How to write it

### chop(x)

**x**

A number. Takes a number.

## Examples

- $\displaystyle \operatorname{chop}(1 \times 10^{-20}) = 0$

  `chop(1e-20)`

  In the solver, `chop(1e-20)` gives `0`.

  [Open in the solver](https://hilberon.com/?q=chop%281e-20%29)

## Related functions

- [numeric](https://hilberon.com/library/numeric)

  Approximate a number with decimals.
- [rationalize](https://hilberon.com/library/rationalize)

  The simplest fraction equal to a decimal number.

---
Source: https://hilberon.com/library/chop
