diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/luamaths/luamaths-fractions.lua')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luamaths/luamaths-fractions.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luamaths/luamaths-fractions.lua b/Master/texmf-dist/tex/lualatex/luamaths/luamaths-fractions.lua index e4ab7a2329e..540e5b21a25 100644 --- a/Master/texmf-dist/tex/lualatex/luamaths/luamaths-fractions.lua +++ b/Master/texmf-dist/tex/lualatex/luamaths/luamaths-fractions.lua @@ -1,6 +1,6 @@ -- The luafractions module -- Authors: Chetan Shirore and Ajit Kumar --- version 1.0, Date=03-Aug-2023 +-- version 1.1, Date=04-Aug-2023 -- Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt. M = {} -- the module @@ -204,6 +204,9 @@ function M.div(a, b) end function M.tostring (c) + if c.n == 0 then + return string.format("%g",0) + end if c.d == 1 then return string.format("%g",c.n) end |