I used the codes below to load data(float) and store in an array. 开发者_开发问答My oject has one float field 'value' (setValue,getValue to read or write value)
rowData=(char*)sqlite3_colum_text(statement,0);
float v=[[NSString  initWithUTF8String:rowData] floatValue];
[myObject setValue:v];
[myArray addObject:myObject]; 
If I read the value from the array using float tem=[[myArray objectAtIndex:i] getValue];
I found all values are not correct, everyone is 0.00000000000000
Welcome any comment
Thanks
interdev
If your values are stored as float numbers in database you should get them using sqlite3_column_double function, not sqlite3_column_text
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论