lua-users home
lua-l archive

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


In article <8D04586A-39FE-49AE-B334-64908F718969@dnainternet.net>, Asko
Kauppi <askok@dnainternet.net> 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
executing:

print(4 < @"4.2")

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

Thanks,
Michael