Skip to content

Commit

Permalink
Use \pgfmath@tonumber in pgfmath (fixes #924)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhelypeOleinik committed Sep 20, 2020
1 parent 23ed888 commit 2ae12cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tex/generic/pgf/math/pgfmathfloat.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@
\pgfmathfloattofixed\pgfmathresult
\pgf@xa=\pgfmathresult pt
\multiply\pgf@xa by\pgfmathresultdenom
\edef\pgfmathfloat@scaled@numerator{\pgf@sys@tonumber\pgf@xa}%
\edef\pgfmathfloat@scaled@numerator{\pgfmath@tonumber\pgf@xa}%
\expandafter\pgfmathfloat@loc@@to@int\pgfmathfloat@scaled@numerator\relax{\pgfmathresultnumerator}%
\fi
\ifpgfmathprintnumber@frac@whole
Expand Down
6 changes: 3 additions & 3 deletions tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
\begingroup%
\pgfmath@x=#1pt %
\pgfmath@xa\pgfmath@x%
\edef\pgf@temp{\pgf@sys@tonumber\pgfmath@x}%
\edef\pgf@temp{\pgfmath@tonumber\pgfmath@x}%
% compute lossless '*1000' operation:
\expandafter\pgfmath@multiply@thousand\pgf@temp 000\relax
\pgfmath@x=\pgfmathresult pt %
Expand Down Expand Up @@ -306,7 +306,7 @@
\begingroup%
\pgfmath@x#1pt\relax%
\pgfmath@xa\pgfmath@x%
\edef\pgf@temp{\pgf@sys@tonumber\pgfmath@x}%
\edef\pgf@temp{\pgfmath@tonumber\pgfmath@x}%
% compute lossless '*1000' operation:
\expandafter\pgfmath@multiply@thousand\pgf@temp 000\relax
\pgfmath@x=\pgfmathresult pt %
Expand Down Expand Up @@ -340,7 +340,7 @@
\pgfmath@x\pgfmathresult pt\relax%
\fi%
% compute lossless '*1000' operation:
\edef\pgf@temp{\pgf@sys@tonumber\pgfmath@x}%
\edef\pgf@temp{\pgfmath@tonumber\pgfmath@x}%
\expandafter\pgfmath@multiply@thousand\pgf@temp 000\relax
\pgfmath@x=\pgfmathresult pt %
\pgfmath@table@lookup{\pgfmath@x}{pgfmath@atan@}{1001}%xxx
Expand Down

0 comments on commit 2ae12cb

Please sign in to comment.