lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


it's easier to use string.format to do this:

string.format("my number is: %i", number)

this will insert the value of number into the string as an integer


-----Ursprüngliche Nachricht-----
Von: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] Im Auftrag von Walter Cruz
Gesendet: Dienstag, 23. August 2005 21:50
An: Lua list
Betreff: Re: integer lua

Hi steffenj.

Thank for your response.

well, after I send the e-mail, I thinked that I can use the string
library and just strip the chars after the dot, right ?

[]'s
- Walter