title: How to save a decimal number from c# to sql
body: <p>I'm having a problem when I try to save a decimal number from c# to sql database. First of all I have string that I convert to decimal and when I try to save that decimal to sql database something goes wrong. For example if I try to save 3.24, in database it shows as 324.00 this is the part of the code please help... I have already tried changig types from decimal to numeric and instead of convert.ToDecima decimal.Parse</p>
  
  <pre><code>        decimal cijena_uzine = Convert.ToDecimal(textBox1.Text, CultureInfo.InvariantCulture.NumberFormat);
  
          try
          {
              spremi_cijenu_obroka.Open();
              cmd = new SqlCommand("Update Vrsta_Obroka set cijena="+ cijena_uzine + " where Šifra_Obroka=1 ;", spremi_cijenu_obroka);
  </code></pre>