lua-users home
lua-l archive

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


> 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.