Fixed a problem with converting to float value

http://php.net/manual/de/function.floatval.php#114486