kako ti je deklarisano polje u bazi? float(n), sta ti je n?
flaot je uvek aproksimacija realnog broja, i ne mogu svi da se prikazu, ali 1.8 bi trebao, osim ako ti n nije mnogo malo....
----
ok, mala izmena, 1.8 bez problema ulazi i u float(1). Probaj ovo (mala izmena dusanovog koda):
Code:
kom.Parameters.Add(new SqlParameter("@X", System.Data.SqlDbType.Float, 8));
kom.Parameters["@X"].Value = x;
kom.CommandText = "UPDATE tabela SET vrednost = @X";
▪ "Why isn't my wireless mouse connected to the computer?" - 2008 Dumbest Technical Support Question award
▪ The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites' - Larry Hardiman
▪ If the good guy gets the girl, it's rated PG; if the bad guy gets the girl, it's rated R; and if everybody gets the girl, it's rated X