[Tex/LaTex] How to write ‘decimal to Binary convertion ‘ in Latex math-modetables How can I make like this…plz help! Best Answer Try \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \cs_new:Npn \displayasdecimal#1 {(#1) \sb {10}} \cs_new:Npn \displayasoctal #1 {(\int_to_oct:n{#1}) \sb 8} \cs_new:Npn \displayasbinary #1 {(\int_to_bin:n{#1}) \sb 2} \ExplSyntaxOff \begin{document} $\displayasdecimal{311}=\displayasoctal{311}=\displayasbinary{311}$ \end{document} This gets you If you actually want to do the calculation automatically and dislay it as in the top of your picture then that would be possible too using expl3. Related Solutions[Tex/LaTex] How to write this math equation in LaTeX First, never use $\Pi$ when you obviously mean $\prod$. Second, I guess dots here between $R_i$ and $ID$ should be centered. Here is what I got: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\Dist}{Dist} \begin{document} \pagestyle{empty} \begin{displaymath} MR(e) = \prod_{(R_i\cdot ID, R_j\cdot ID)} \underset{\Dist_{sp}(r_i,r_j)\le\delta}{(R_i\bowtie R_j)} \end{displaymath} \end{document} [Tex/LaTex] How to write a recurring decimal in LaTeX If you're thinking of using a horizontal bar over a recurring group of decimals, you could use the \overline command: \documentclass{article} \begin{document} $\frac{1}{7}=0.\overline{142857}$ \end{document} Related Question[Tex/LaTex] How to illustrate decimal to binary conversion[Tex/LaTex] How to create a complicated table in latex[Tex/LaTex] How to write framed formulas in the LaTeX document[Tex/LaTex] n-base to decimal calculations in LaTeX
Best Answer
Try
This gets you
If you actually want to do the calculation automatically and dislay it as in the top of your picture then that would be possible too using
expl3
.