Jeff wrote: > Hello, I am creating a program as a learning experience. > > The program keeps a running balance of individual decimal values. > > What is displayed is the balance total, and below that is a list of > the individual entries. > > The numbers are all double data type, and saved in the sqlite3 > database as datatype "REAL NOT NULL". > > When the list is displayed, the balance shows the value correctly, > without rounding or cutting off numbers. > > However, the list item numbers get rounded, and as the numbers get > bigger, the decimals start getting cut off. > > Any ideas?
You are implicitly relying upon something like Float#toString() to display the numeric data. If you want control over the formatting, you will need to use something like setViewText() or a ViewBinder with your SimpleCursorAdapter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

