[pstricks] round
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu May 29 07:54:05 CEST 2008
Doris Wagner schrieb:
> hi list,
>
> when I use \psPrintValue for printing reals, is there a way to get
> them rounded to 2 decimals? that is:
>
> 100 ----> 100.00
>
> as well as
>
> 100.0123 ----> 100.01
\documentclass{article}
\usepackage{pst-func}
\def\stripII{100 mul cvi 100 div }
\begin{document}
\makebox[3em]{\psPrintValue{2 sqrt \stripII }}
\makebox[3em]{\psPrintValue{100 \stripII }}
\end{document}
100 only as 100.0
Herbert
More information about the PSTricks
mailing list