Home > Software design >  LaTeX - Decimal to Binary conversion scheme
LaTeX - Decimal to Binary conversion scheme

Time:10-07

I'm trying to replicate on LaTeX the decimal to binary conversion scheme, which should look like this:
64 | 0
32 | 0
16 | 0
And so on, considering the vertical lines have to be connected, so no vertical space between them. Is there a way to do that? That's what I've got so far:

${56\newline28\newline14\newline7\newline3\newline1\newline0\newline}\vert\right{0\newline0\newline0\newline0\newline0\newline1\newline}$

CodePudding user response:

You could use a tabular:

\documentclass{article}

\begin{document}

\begin{tabular}{c|c}
64 & 0\\
32 & 0\\
16 & 0\\ 
\end{tabular}

\end{document}
  • Related