Can anyone tell me if this is supposed to happen and if so, why?
PHP Code:
float(123) = 123
float("123") = 123
float("str") = -1
float("str123") = -1
float("123str") = 123
Note the very last one. If a string starts with numbers, the float() command thinks it's a number, and I find this very annoying and misleading. If it is indeed a bug with the engine, could it be fixed please?