I wonder why the PDO::PARAM_FLOAT does not exist and what can replace it?
There is none, probably due to implied rounding issues.
Just use PDO::PARAM_STR
and convert the float to a string using strval($float)
or (string) $float
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With