lua-users home
lua-l archive

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


--- In lua-l@yahoogroups.com, Luiz Henrique de Figueiredo <lhf@t...>
wrote:
> >What "format string" should I use so the '2*' line outputs the same
> >value as the '1*' line?
> 
> If you're sure the number is an integer, try %.0f, but you're still
limited
> to integers that fit into a double (that's 53 bits, better than the
usual 32).
> --lhf

That did it, thank you very much.

May I ask why the decision was made to not support 'lL' in format
strings? I think it would be a better solution for a situation like
this, which I don't think is unusual.

Again, thanks for your help.

[]'s
Daniel Serodio