Anything wrong with

Code:

function isNumeric($var)
$IsNumeric = ($var=0.0+$var)
endfunction