I have heard about a lua library or function math.eval
:
http://wiki.inspired-lua.org/index.php?title=math.eval&setlang=fr
I have this error message :
! LuaTeX error ./Calcul.lua:11: attempt to call field 'eval' (a nil value) stack traceback: ./Calcul.lua:11: in function 'NbRandom' [\directlua]:1: in main chunk. \Calculs code ...^^@-\par \directlua { NbRandom () }
when I try to use it as this :
Nb = math.eval("3-7+8")
What did I miss ?