Fixed serialization of float numbers without decimal points