If you uses parameterised queries you would not have this problem, as the correct values will be sent to the database.
MySqlCommand cmd = new MySqlCommand("INSERT INTO youTable (numberOfDays) VALUE (@numberOfDays)", yourConnection);
cmd.Parameters.AddWithValue("@numberOfDays", numberOfDays);
This assumes that numberOfDays is your float value.