Oh yes of course, I forgot that it's using lua values if you are no inside a terra function.

Thanks!

On 20/05/2015 00:19, Saptarshi Guha wrote:

On Tue, May 19, 2015 at 3:53 PM, Isak Andersson <[email protected] <mailto:[email protected]>> wrote:

    for i = 0,10 do
      CIO.printf("Oh you grow so fast, you are now %d years old!!\n", i)
    end



​ if i'm not mistaken, lua numbers are doubles. So try changing the %d to %f or %e. It should work

Cheers
​

_______________________________________________
terralang mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/terralang

Reply via email to