This page was last modified 09:15, 25 March 2008.
CS000855 - I18n: Real numbers
From Forum Nokia Wiki
| ID | CS000855 | Creation date | March 25, 2008 |
| Platform | S60 3rd Edition, MR S60 3rd Edition, FP1 S60 3rd Edition, FP2 Beta | Tested on devices | Nokia E61i Nokia E90 Communicator Nokia N95 8GB Nokia 6220 Classic |
| Category | Symbian C++ | Subcategory | Localization |
| APIs | None | Classes | TReal TRealFormat |
| Methods | TBuf::AppendNum() |
Overview
This code snippet is one of the series of snippets that demonstrate how to implement support for international diversity. This snippet shows how to format a real number according to the locale settings of the device.
Source file
// Buffer for localized text TBuf<50> myBuf; // The amount to format TReal myAmount = 1234.56789; // Real number formatter, initialized with system's current locale // settings TRealFormat myFormat; // Format the number with the decimal separator setting of the // current locale myBuf.AppendNum(myAmount, myFormat);
Postconditions
A real number is formatted according to the locale settings of the device.
See also
- CS000856 - I18n: Currency
- CS000857 - I18n: Timestamps
- CS000858 - I18n: Images
- CS000807 - Localizing application strings
- S60 Platform: Localization Example
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Port numbers for receiving sms in 6230i and 6681 | manmathr | General Discussion | 0 | 2006-03-16 15:33 |
| How to get text value from SettingList? | ab | General Symbian C++ | 3 | 2007-12-17 08:35 |
| AT command for getting all numbers of phone book entries | jnagler | PC Suite API and PC Connectivity SDK | 0 | 2002-07-05 08:49 |
| Does Real player in Nokia 6630 support rm streaming in TCP ? | leepatricklee | Graphics & Video & Streaming | 5 | 2007-05-05 11:31 |
| T-Moble doesn't allow SMS to port numbers??? True??? | johnbutler | General Messaging | 2 | 2005-11-02 20:35 |

