Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

floats are given int values #2

Open
dcramps opened this issue Sep 11, 2012 · 1 comment
Open

floats are given int values #2

dcramps opened this issue Sep 11, 2012 · 1 comment

Comments

@dcramps
Copy link

dcramps commented Sep 11, 2012

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 :(

@okenjaev
Copy link

Hello there, what about to use double instead of float! There is a function "double sqlite3_column_double(sqlite3_stmt*, int iCol)";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants