I am generating 10 random floats between 6 and 8 (all for good reason), and writing them to a mysql database in a serialized form. But one quirk seems to emerge at the stora
Store them as strings after using number_format:
$number = number_format($float, 2);