3,085 reputation
103564
bio website
location
age
visits member for 3 years, 4 months
seen Aug 15 at 11:00

May
18
awarded  Famous Question
May
7
awarded  Nice Question
May
6
accepted Define variables holding a percentage
May
6
comment Define variables holding a percentage
Actually i always need 1 decimal digit after . (eg., %63.8 instead of 63.83), could you show me how to change your code?
May
6
comment Define variables holding a percentage
@DavidCarlisle well, i became greedy :-)
May
6
comment Define variables holding a percentage
@PredragPunosevac I tried your \directlua{tex.print(string.format("%.2f",2*(1234.56+9786.45)))}, but the compilation raised one error Undefined control sequence...
May
6
comment Define variables holding a percentage
@PaulGessler Yes...
May
6
revised Define variables holding a percentage
added 12 characters in body
May
6
asked Define variables holding a percentage
May
5
accepted Define numeric variables
May
5
comment Define numeric variables
That works... just another question: how much space does the second \ of \x\ add after a number? is it exactly equivalent to a normal space after a number?
May
5
comment Define numeric variables
Thank you... I see how you define x and y, and what if I still want to define a newcommand z which is x+y? How to write this definition?
May
5
accepted pdflatex, dvips: cannot determine size of graphic in … (no Bound ingBox)
May
5
comment Define numeric variables
I just amended the OP...
May
5
revised Define numeric variables
added 22 characters in body
May
5
comment Define numeric variables
OK, I don't need the floating point values...
May
5
comment Define numeric variables
Well, I made the OP a little bit more complicated...
May
5
revised Define numeric variables
added 84 characters in body
May
5
asked Define numeric variables
Apr
26
awarded  Yearling