SQLiteManager4iOS
SQLiteManager4iOS copied to clipboard
floats are given int values
Lines 185-190
case SQLITE_FLOAT:
{
float value = sqlite3_column_int(statement, i); //using sqlite3_column_int() when setting a float...
[result setObject:[NSNumber numberWithFloat:value] forKey:columnName];
break;
}
All my floats were integers until I fixed it :(
Hello there, what about to use double instead of float! There is a function "double sqlite3_column_double(sqlite3_stmt*, int iCol)";