summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-22 00:05:28 +0000
committerKarl Berry <karl@freefriends.org>2013-11-22 00:05:28 +0000
commit4efb0e288e61307337a1593f83dead03178acc61 (patch)
tree1de51740df3962c81edef97135bac249b41d3fe1 /Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx
parent9dd6af228b319f176777f85b0b551eda0df6cfbe (diff)
l3 (19nov13)
git-svn-id: svn://tug.org/texlive/trunk@32204 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx23
1 files changed, 8 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx
index c207d30abf5..c7c07218480 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%%
-%% File: l3fp-assign.dtx Copyright (C) 2011-2012 The LaTeX3 project
+%% File: l3fp-assign.dtx Copyright (C) 2011-2013 The LaTeX3 project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -36,7 +36,7 @@
%
%<*driver>
\RequirePackage{l3bootstrap}
-\GetIdInfo$Id: l3fp-assign.dtx 4212 2012-09-09 12:24:04Z bruno $
+\GetIdInfo$Id: l3fp-assign.dtx 4605 2013-11-19 03:05:27Z bruno $
{L3 Floating-point assignments}
\documentclass[full]{l3doc}
\begin{document}
@@ -93,15 +93,15 @@
% \fp_gset:Nn, \fp_gset:cn,
% \fp_const:Nn, \fp_const:cn
% }
-% Simply use \cs{@@_parse:n} within various \texttt{x}-expanding
+% Simply use \cs{@@_parse:n} within various \texttt{f}-expanding
% assignments.
% \begin{macrocode}
\cs_new_protected:Npn \fp_set:Nn #1#2
- { \tl_set:Nx #1 { \@@_parse:n {#2} } }
+ { \tl_set:Nx #1 { \exp_not:f { \@@_parse:n {#2} } } }
\cs_new_protected:Npn \fp_gset:Nn #1#2
- { \tl_gset:Nx #1 { \@@_parse:n {#2} } }
+ { \tl_gset:Nx #1 { \exp_not:f { \@@_parse:n {#2} } } }
\cs_new_protected:Npn \fp_const:Nn #1#2
- { \tl_const:Nx #1 { \@@_parse:n {#2} } }
+ { \tl_const:Nx #1 { \exp_not:f { \@@_parse:n {#2} } } }
\cs_generate_variant:Nn \fp_set:Nn {c}
\cs_generate_variant:Nn \fp_gset:Nn {c}
\cs_generate_variant:Nn \fp_const:Nn {c}
@@ -212,16 +212,9 @@
% \end{variable}
%
% \begin{variable}{\c_pi_fp, \c_one_degree_fp}
-% We do not round $\pi$ to the closest multiple of $10^{-15}$, which
-% would underestimate it by roughly $2.4\cdot 10^{-16}$, but instead
-% round it up to the next nearest multiple, which is an overestimate
-% by roughly $7.7\cdot 10^{-16}$. This particular choice of rounding
-% has very nice properties: it is exactly divisible by $4$ and by
-% $180$ as a $16$-digit precision floating point number, hence
-% ensuring that $\sin(180\mathrm{deg}) = \sin(\pi) = 0$ exactly, with
-% no rounding artifact.
+% We simply round $\pi$ to the closest multiple of $10^{-15}$.
% \begin{macrocode}
-\fp_const:Nn \c_pi_fp { 3.141 5926 5358 9794 }
+\fp_const:Nn \c_pi_fp { 3.141 5926 5358 9793 }
\fp_const:Nn \c_one_degree_fp { 0.0 1745 3292 5199 4330 }
% \end{macrocode}
% \end{variable}