[NTG-context] Code lua in a table

Otared Kavian otared at gmail.com
Sun Jul 19 00:05:50 CEST 2020



> On 18 Jul 2020, at 23:35, Otared Kavian <otared at gmail.com> wrote:
> 
> 
> 
>> On 18 Jul 2020, at 22:25, Fabrice Couvreur <fabrice1.couvreur at gmail.com> wrote:
>> 
>> Hi Wolfgang,
>> 
>> It works but why did you ask this question since I finally use context ?
>> Are you sure you want to use context(...) here?
>> How not to display the .0 ?

Or even better, you can return an integer in your Binom function:

	return math.round((n*Binom(n-1,k-1))/k)

Best regards: Otared


More information about the ntg-context mailing list