Symbol | Absolute value |
---|---|

Type of symbol | Mathematics |

Package (requirement) | amsmath |

Argument | Yes |

Latex command | `\lvert arg\rvert` |

Example | `\lvert a\rvert` → |a| |

You can use the `\lvert arg \rvert`

command of the amsmath package to print the absolute value in a latex document. You can also use the keyboard pipe key`shift`

+ `|`

, but this is not a good practice.

```
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$ \lvert -8\rvert = 8 $$
$$ \lvert X+3\rvert =\lvert X-11\rvert $$
$$ 6\lvert 2x+3\rvert - 7 =2\lvert 2x+3\rvert + 1 $$
$$ \lvert 2x - 5\rvert > 11 $$
\end{document}
```

**Output :**