diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-04-27 17:10:58 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-04-27 17:10:58 +0200 |
commit | a0e79ce94348b934dcefc38133cd8fed08bd38e3 (patch) | |
tree | 8b98d5ba39a83fb9953d5bb8e92a95bb4ff00cc2 /tex/context/base/mkxl/cldf-pos.mkxl | |
parent | 09d2348c611e4e4eb348a36c76acaef546d6287e (diff) | |
download | context-a0e79ce94348b934dcefc38133cd8fed08bd38e3.tar.gz |
2023-04-27 16:57:00
Diffstat (limited to 'tex/context/base/mkxl/cldf-pos.mkxl')
-rw-r--r-- | tex/context/base/mkxl/cldf-pos.mkxl | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/cldf-pos.mkxl b/tex/context/base/mkxl/cldf-pos.mkxl index e8868eece..fb419d070 100644 --- a/tex/context/base/mkxl/cldf-pos.mkxl +++ b/tex/context/base/mkxl/cldf-pos.mkxl @@ -13,8 +13,24 @@ \writestatus{loading}{ConTeXt Posit Numbers / Initialization} -% \newcount\trialtypesettingstate % gets aliased at the Lua end - \registerctxluafile{cldf-pos}{autosuffix} +\newposit\pfpi \pfpi 3.1415926535897932384626433832795028841971 +\newposit\pftwopi \pftwopi \floatexpr \pfpi * 2 \relax + +% \newfloat\fooA +% +% \scratchdimen=123.456pt\relax [\type{dim:} \the\scratchdimen==123.456pt]\par +% \fooA =123.456\relax [\type{pos:} \the\fooA ==123.456] \par +% \fooA =\scratchdimen\relax [\type{pos:} \the\fooA ==123.456] \par +% \scratchdimen=\fooA\relax [\type{dim:} \the\scratchdimen==123.456pt]\par +% \scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:} \the\scratchdimen==133.456pt]\par +% +% \fooA\pfsin \pfpi [\the\fooA]\par +% \fooA\pfcos \pfpi [\the\fooA]\par +% \fooA\pfsqrt\pfpi [\the\fooA]\par +% \fooA\pfexp \pfpi [\the\fooA]\par +% \fooA\pflog \pfpi [\the\fooA]\par +% \fooA\pfpow \pfpi 2 [\the\fooA]\par + \endinput |