[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: math.tofloat (or how to check if number has float representation)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 17 Jan 2015 16:07:13 -0200
> I was trying to do an advanced type checking library in Lua, and I
> seem to need a math.tofloat. How do I do this?
If you need to convert a number x to a float, you can do x+0.0 for instance.