In my database, I have NextStatDistanceTime value as a float. When \"float time = reader.GetFloat(0);\" line excecuted, it gives an error of
float time = reader.GetFloat(0);
you can try:
float time = float.Parse(reader[0].ToString());
also note (though not related with your Q) that you don't need to run
command.ExecuteNonQuery();