[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Sean Conner <sean@...>
- Date: Sat, 6 Jul 2013 20:37:35 -0400
It was thus said that the Great Luiz Henrique de Figueiredo once stated:
> > Does the integer representation require something special to use, or is
> > used automatically for any number that happens to be an integer?
>
> The lexer decides which type of number a numeric value is.
> So 123 is an integer and 123.0 is a real.
>
> All operations on values of the same type give values of that type,
> except that division always gives a real. There is a new integer
> division operation, denoted by //.
Is there an equivalent metatable function?
-spc