Why when I save a float value into database (the data type is float as well), for example 24,62 in database is writen as 24,6200008392334. I have entered only 2 decimals, but in db there is plenty of them.
This is how I have:
string Together = textBoxAmount.Text; string Seperated = Together.Split(' '); float MyAmount = float.Parse(Seperated);
In the "textBoxAmount.Text" it`s just a number with € sign. In my case 24,62 €.
Thats why I 1st do a seperation with whitesplace, that I get in array only a string of 24,62. Then I convert it to float. But I do not add F mark correctly (for float).