lua-users home
lua-l archive

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

In article <>, Asko
Kauppi <> wrote:

> 4 in your code is not a float. It's an integer.

Ok, thats true, but I meant to convert also integer numbers in the same
way. So "4" and "4.2" should be treated the same and both converted into
userdate. Problem is that numbers and userdata can not be compared, so

print(4 < @"4.2")

gives an error. Therefore I would like to convert all numbers in the
string into floats.