Re: [NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi Hans, In fact, I was talking about functions that seemed to me "complicated" for what I wanted to do. Fabrice Le sam. 9 nov. 2019 à 14:43, Hans Hagen a écrit : > On 11/9/2019 11:42 AM, Fabrice Couvreur wrote: > > Hi, > > Thank you for your suggestions, the problem is solved. I searched, but >

Re: [NTG-context] Number format with lua

2019-11-09 Thread Hans Hagen
On 11/9/2019 11:42 AM, Fabrice Couvreur wrote: Hi, Thank you for your suggestions, the problem is solved. I searched, but the solutions seemed too complex. Is it specific to Context with Lua. If so, which document should you read ? how do you mean complex ... anyway, if you refer to %g, one p

Re: [NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi, Thank you for your suggestions, the problem is solved. I searched, but the solutions seemed too complex. Is it specific to Context with Lua. If so, which document should you read ? Fabrice Le sam. 9 nov. 2019 à 11:20, Hans Hagen a écrit : > On 11/9/2019 11:03 AM, Pablo Rodriguez wrote: > > O

Re: [NTG-context] Number format with lua

2019-11-09 Thread Hans Hagen
On 11/9/2019 11:03 AM, Pablo Rodriguez wrote: On 11/9/19 10:38 AM, Fabrice Couvreur wrote: Hi, In the table below, how to have numbers with only three decimals? Hi Fabrice, at least in your sample "0.4g" seems the way to go, such as in: context.startxcell() context("%0.4g",1.031^i) contex

Re: [NTG-context] Number format with lua

2019-11-09 Thread Pablo Rodriguez
On 11/9/19 10:38 AM, Fabrice Couvreur wrote: > Hi, > In the table below, how to have numbers with only three decimals? Hi Fabrice, at least in your sample "0.4g" seems the way to go, such as in: context.startxcell() context("%0.4g",1.031^i) context.stopxcell() Just in case it might help, Pab

Re: [NTG-context] Number format with lua

2019-11-09 Thread Henri Menke
On 11/9/19 10:38 PM, Fabrice Couvreur wrote: > Hi, > In the table below, how to have numbers with only three decimals ? > Thank you. > Fabrice > > \starttext > \startluacode > local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } > local letters_2 = { "1", "Année", "1998", "1999",

[NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi, In the table below, how to have numbers with only three decimals ? Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" } contex