# How to put a vertical line above a number?

I need help about how to put vertical line above number ?

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Heiko Oberdiek Sep 17 '15 at 8:39
• Welcome to TeX.SX! Your question is completely unclear! Which number? Which documentclass? – user31729 Sep 17 '15 at 8:39
• Close-Voters: Give some time to improve the question ;- – user31729 Sep 17 '15 at 9:00
• Do you mean something like a \bar{} rotated 90 degrees? @Christian Hupfer Isn't that what the on hold feature is for? – JJM Driessen Sep 17 '15 at 9:28
• @Monika can you add a picture of what you want to your question (you can edit your question to add it)? Does the “vertical line” you want mean something? (And if yes: what does it mean?) – cgnieder Sep 17 '15 at 9:44

Something like this?

\documentclass{article}

\usepackage{amssymb} % required for \shortmid
\usepackage{stackengine}

\newcommand{\vbar}[1]{\stackon[1pt]{$#1$}{\shortmid}} % vbar = vertical bar

\begin{document}

Like this? \vbar{5}

\end{document}