Bonjour à tous j'ai un soucis avec mon programme,pouvez vous m'aider svp!!!
mon programme est comme suit :
et l'erreur c'est :error converting data type to float.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 res_pearson = (float)(res1 * (1.0 / (Math.Sqrt(res2 * res3)))); myconnection.Open(); SqlCommand commande = new SqlCommand("INSERT INTO correlation (id1,id2,vcorrelation) VALUES ('" + id[i] + "','" + id[j] + "','" + res_pearson + "') ", myconnection); commande.ExecuteNonQuery(); myconnection.Close();
il m'accepte pas res_pearson.
merciii de m'aider
Partager