[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3: 1 Month of use
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 5 Mar 2014 13:09:39 -0300
> 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