# Tag Info

6

Use lualatex: \documentclass{article} \begin{document} \directlua{tex.print(10^(-32)/10^(-30))} \directlua{tex.print(1/10^(-30))} \end{document}

9

Use a better floating point management framework, the one in expl3. \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \cs_set_eq:NN \fpeval \fp_eval:n \ExplSyntaxOff \begin{document} \fpeval{10e-32/10e-30} \end{document} Note that, differently from pgf, the floating point macros are expandable. Thus, you get the same output from \...

11

The number range in the default math engine of pgf is quite restricted because of the limitations of TeX's numbers. Also the library for fixed point arithmetic does not help with these exponents, because this library only covers ten digits before and after the decimal point. The example can be processed with the floating point unit library: \documentclass{...

5

As a rule of thumb, you should use \pgfmathresult immediately after setting it: other PGF routines might make use of the same feature. Indeed, at the end of the tikzpicture, the value of \pgfmathresult is 0.4, notwithstanding the setting you do. Use a specific macro: \documentclass[tikz,border=10pt]{standalone} \begin{document} \begin{tikzpicture}[ ...

3

You can create a new column \pgfplotstablecreatecol [create col/expr={\thisrowno{0}*1000}] {time in ms}% column name \chartdata and use it with x=time in ms in the plots. \documentclass{standalone} \usepackage{filecontents} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{pgfplotstable} \begin{document} \begin{filecontents}{chartdata....

Top 50 recent answers are included