In Unity, I want to save mouse sensivity value (float) in database table as REAL. But for some reason it rounds the value, so if I have value 1.0, it saves 1.0, but if it's, for example 0.65, it saves 0.0. Here's the query:
foreach (KeyValuePair<string, float> kv in mouse)
{
MyDataBase.ExecuteQueryWithoutAnswer("UPDATE Mouse SET value = '" + kv.Value.ToString() + "' WHERE option = '" + kv.Key + "'");
}
Other types save correctly.