lua-users home
lua-l archive

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


> This can be somewhat difficult to do, but not too much more. So, in
> code where "str .. my_num" is done, then you have to manually add
> `tostring` to get the intended result.

We changed that a little. Now, only 'tostring' itself adds the ".0". So,
in concatenation and other coersions, the behavior is like it was in
5.2:

> = 3.0
3.0
> = 3 + 0.0
3.0
> 3.0 .. ''
3
> tostring(3.0) .. ''
3.0

-- Roberto