lua-users home
lua-l archive

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


On Mon, 26 Nov 2018 at 22:01, Gavin Wraith <gavin@wra1th.plus.com> wrote:

> I would like to see a reversal of the 'numbers are just numbers' policy;
> that is, I would like more of a type barrier between integers and floats
> for example. I would like to see
> > type (57) --> integer
> > type (57.0) --> float

This is already true. Try this:

math.type(57)
math.type(57.0)