My codes are below:
\documentclass{book}
\usepackage{graphicx}
\newbox\fightbox
\newcount\fightcount
\newcommand{\test}[1]{
\setbox\fightbox=\vbox{#1}%184.99pt
}
\begin{document}
\test{\includegraphics{./images/c02f001.pdf}}
\showthe\ht\fightbox
Running text
\end{document}
when I do compilation, LaTeX told the box value is 184.99954pt, but I need to extract the value only, i.e. 184.9954 only, that pt is not required, is this possible?
\sbox\fightbox{#1}. Can you please tell why you need the number? – egreg Jan 29 '18 at 12:57