summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex20
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex
index 9cd4a9a6dd6..72b60ef6d99 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex
@@ -290,8 +290,8 @@ precision.
|fixed relative| ``rounds from the left'': it takes the \emph{first}
non-zero digit, temporarily places the period after this digit, and rounds
that number. The rounding style |fixed| leaves the period where it is, and
- rounds everything behind that digit. The |sci| style is similar to |fixed
- relative|.
+ rounds everything behind that digit. The |sci| style is similar to
+ |fixed relative|.
\end{keylist}
\begin{key}{/pgf/number format/int detect}
@@ -344,7 +344,7 @@ precision.
\begin{key}{/pgf/number format/frac}
Displays numbers as fractionals.
%
-\begin{codeexample}[width=3cm]
+\begin{codeexample}[width=3cm,preamble={\usetikzlibrary{fpu}}]
\pgfkeys{/pgf/number format/frac}
\pgfmathprintnumber{0.333333333333333}\hspace{1em}
\pgfmathprintnumber{0.5}\hspace{1em}
@@ -370,7 +370,7 @@ precision.
\begin{key}{/pgf/number format/frac denom=\meta{int} (initially empty)}
Allows to provide a custom denominator for |frac|.
%
-\begin{codeexample}[width=3cm]
+\begin{codeexample}[width=3cm,preamble={\usetikzlibrary{fpu}}]
\pgfkeys{/pgf/number format/.cd,frac, frac denom=10}
\pgfmathprintnumber{0.1}\hspace{1em}
\pgfmathprintnumber{0.5}\hspace{1em}
@@ -385,7 +385,7 @@ precision.
the fractional part. In this case, the fractional part will be less
then $1$. Use |frac whole=false| to avoid whole number parts.
%
-\begin{codeexample}[width=3cm]
+\begin{codeexample}[width=3cm,preamble={\usetikzlibrary{fpu}}]
\pgfkeys{/pgf/number format/.cd,frac, frac whole=false}
\pgfmathprintnumber{20.1}\hspace{1em}
\pgfmathprintnumber{5.5}\hspace{1em}
@@ -805,9 +805,9 @@ the correct digits, afterwards a display style generates proper \TeX-code.
\begin{stylekey}{/pgf/number format/verbatim}
A style which configures the number printer to produce verbatim text
- output, i.\,e., it doesn't contain \TeX\ macros.
+ output, i.e., it doesn't contain \TeX\ macros.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fpu}}]
\pgfkeys{
/pgf/fpu,
/pgf/number format/.cd,
@@ -823,9 +823,9 @@ the correct digits, afterwards a display style generates proper \TeX-code.
|assume math mode|. Furthermore, it installs a |sci generic| format for
verbatim output of scientific numbers.
- However, it will still respect |precision|, |fixed zerofill|, |sci
- zerofill| and the overall styles |fixed|, |sci|, |int detect| (and their
- variants). It might be useful if you intend to write output files.
+ However, it will still respect |precision|, |fixed zerofill|,
+ |sci zerofill| and the overall styles |fixed|, |sci|, |int detect| (and
+ their variants). It might be useful if you intend to write output files.
\end{stylekey}