lua-users home
lua-l archive

Re: math.tofloat (or how to check if number has float representation)

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

AltStyle によって変換されたページ (->オリジナル) /