[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [5.3] Converting a floating point number to integer.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 19 Nov 2014 08:55:15 -0200
"you can use integral floating point values whenever an integer is required"
and the converse
"you can use an integer whenever a floating point value is required"
hold in Lua 5.3, *provided* the implied conversion can be made without loss.
This seems clear to me. But it does bring up the limits of the underlying
representation of numbers.
(Not that there is any place in Lua where a floating point value is *required*.)