diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-08-17 14:26:12 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-08-17 14:26:12 +0200 |
commit | 91b59bb4f8b33701c69e095841fe4cf57971ac20 (patch) | |
tree | fb02a1226f504fce16923a396ae41bf9b2b6cc04 /tex/context/base/mkiv/util-str.lua | |
parent | 59e7679528d75e5d523acddf69dabdce42d53734 (diff) | |
download | context-91b59bb4f8b33701c69e095841fe4cf57971ac20.tar.gz |
2019-08-17 11:54:00
Diffstat (limited to 'tex/context/base/mkiv/util-str.lua')
-rw-r--r-- | tex/context/base/mkiv/util-str.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/util-str.lua b/tex/context/base/mkiv/util-str.lua index ad22302df..92e17b550 100644 --- a/tex/context/base/mkiv/util-str.lua +++ b/tex/context/base/mkiv/util-str.lua @@ -908,7 +908,7 @@ local format_L = function() return format("(a%s and 'TRUE' or 'FALSE')",n) end -local format_n = function() -- strips leading and trailing zeros and removes .0 +local format_n = function() -- strips leading and trailing zeros and removes .0, beware: can produce e notation n = n + 1 return format("((a%s %% 1 == 0) and format('%%i',a%s) or tostring(a%s))",n,n,n) end |