Format a Real Number
From Forum Nokia Wiki
You have a Real Number with a huge value. You would like to format at as you like by using the following code
const TInt KRealNumberFigureAmount = 2; const TInt KRealNumberWidth = 8; TRealFormat format; format.iPlaces = KRealNumberFigureAmount; format.iWidth = KRealNumberWidth; format.iType = KRealFormatGeneral | KDoNotUseTriads; TReal Longitude = (a large real number); //Pseudo assignment TReal Latitude =(a large real number) ; //Pseudo assignment TBuf8<32> ValueBuffer; ValueBuffer.AppendNum( Longitude, format);
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| two console apps simultanous | marcinkrol84 | General Symbian C++ | 6 | 2007-06-29 08:12 |
| com.nokia.mid.ui.DirectGrap hics.fillPoly trouble | autoexec | Mobile Java General | 3 | 1970-01-01 02:00 |
| Number of notes limitations?? | cyphre666 | Mobile Java Media (Graphics & Sounds) | 0 | 2004-08-06 11:48 |
| User defined PSM number for L2CAP? | ed_welch | Mobile Java Networking & Messaging & Security | 10 | 2007-06-09 15:56 |
| How to get Mobile number using function written in C++ | p_pawar | Mobile Java General | 2 | 2007-05-16 19:45 |
