I'm calling a PHP form, the float value is received correctly, but if I cast it into a FLOAT, either immediately of afterwards, the value loses all decimal point numbers, and I don't want that. I tried using floatval but same result.
//code
$time_in_seconds = $_POST["time_in_seconds"];//form value is 1.23f
echo $time_in_seconds;//echo 1.23
$time_in_seconds = (float)$time_in_seconds;
echo $time_in_seconds;//echo 1