This is really weird. I have this piece of code.
$rewardAmt = $amt; if(is_float($rewardAmt)){ print_r(\"is float\");die; } else { print_r(\"is no
Use filter_var() with FILTER_VALIDATE_FLOAT
if (filter_var($amount, FILTER_VALIDATE_FLOAT)) { // good }