I need some calculations with fpeval
, where I want numbers like '21' outwritten as '21.0' with one zero after the point.
Is this possible at xfp.sty?
\documentclass[margin=5pt, varwidth]{standalone}
\usepackage{xfp}
\begin{document}
good: \fpeval{round(1.234,2)}
good too: \fpeval{round(2.34,2)}
not good: \fpeval{round(21,2)}; wanted: 21.0 (with \emph{one} (1) zero in that integer case)
\end{document}