| Reply | « Previous Thread | Next Thread » |
|
Hello to all,
this is maybe a really stupid question, I have searched the whole forum but found no case logged. I would like to format numbers of type double for instance the result is : 44.9385678 and i would like 44.94 I looked at NumberFormat but it does not seem to exist. Thank you for your precious help, Jerome |
|
Jerome,
It's not a dumb question at all; in order to save space, this functionality is not present in CLDC 1.1. We wrote our own kludgy function which basically adds .005, multiplies by 100 and then casts to a long, converts to a string, and then adds zeroes if needed. hope that helps regan_coleman AT xenient.com |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| faulty phone number format after synchronizing my Nokia 6210 with OutlookXP | ricvilla | PC Suite API and PC Connectivity SDK | 3 | 2006-12-28 17:20 |
| Support for international phone numbers | padlon | General Discussion | 3 | 2005-05-04 11:53 |
| ????????Convert Date format | mehulgarnara | Mobile Java Tools & SDKs | 0 | 2005-04-15 08:34 |
| Where are my numbers stored on pc? | jamesmills | General Discussion | 1 | 2004-02-09 03:09 |