×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Comma character used as decimal point symbol instead of point character in some locales on S60 3rd Edition (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
m (1 revision(s))
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix metadata)
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{Archived|timestamp=20120420011254|user=[[User:Lpvalente|Lpvalente]]}}
__NOEDITSECTION__
+
[[Category:Known Issue]][[Category:Java ME]][[Category:MIDP 1.0]][[Category:MIDP 2.0]][[Category:S60 3rd Edition (initial release)]]
  
[[Category:Technical Solutions]]
+
{{ArticleMetaData <!-- v1.2 -->
 +
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= SW version(s)
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= S60 3rd Edition
 +
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20070625
 +
|author= [[User:Technical writer 2]]
 +
<!-- The following are not in current metadata -->
 +
|id= KIJ000693
 +
}}
  
{|border="2" cellspacing="0" cellpadding="4" width="100%"
+
==Overview==
|
+
{{Abstract|When TextField.DECIMAL is used to enter numbers, the comma character is used on some devices/language variants as the decimal point symbol instead of the point character.}}
====Subject:====
+
|colspan = "2"|Comma character used as decimal point symbol instead of point character in some locales on S60 3rd Edition
+
|TSJ000693
+
  
|-
+
==Description==
|rowspan = "2"|
+
When the user enters numbers to a textField.DECIMAL-type textfield, some locales use the comma as the decimal pointer instead of the point. &nbsp;This can cause some confusion if it is not taken into consideration when writing applications.
====&nbsp;====
+
|Platform(s):
+
|colspan = "2"|Device(s), SW version(s):
+
  
|-
+
==How to reproduce==
|S60 3rd Edition
+
Insert a text field of decimal type, enter a number, and try adding a decimal point.
|colspan = "2"|&nbsp;
+
  
|-
+
==Solution==
|
+
If "hardcoded" numbers are also used in, for example, calculations, they must use point instead of comma – otherwise an exception will be thrown.
====Category:====
+
|colspan = "3"|Java
+
  
|-
+
|
+
<!-- Translation --> [[zh-hans:Archived:S60第三版中在某些区域设置下使用了逗号而不是圆点作为小数点分隔符号]]
====Subcategory:====
+
|colspan = "3"|MIDP1.0/2.0
+
 
+
|-
+
|
+
====Description:====
+
|colspan = "3"|'''Overview:'''<br>When TextField.DECIMAL is used to enter numbers, the comma character is used on some devices/language variants as the decimal point symbol instead of the point character.<br>'''Detailed description:'''<br>When the user enters numbers to a textField.DECIMAL-type textfield, some locales use the comma as the decimal pointer instead of the point. It must be noticed that if "hardcoded" numbers are also used in, for example, calculations, they must use point instead of comma – otherwise an exception will be thrown. &nbsp;This can cause some confusion if it is not taken into consideration when writing applications.<br>'''How to reproduce:'''<br>Insert a text field of decimal type, enter a number, and try adding a decimal point.
+
 
+
|-
+
|
+
====Creation date:====
+
|colspan = "3"|June 25, 2007
+
 
+
|-
+
|
+
====Last modified:====
+
|colspan = "3"|-
+
 
+
|-
+
[[Category:Java ME]][[Category:MIDP 1.0]] [[Category:MIDP 2.0]] [[Category:S60 3rd Edition]]
+

Revision as of 09:53, 7 September 2012

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): SW version(s)
CompatibilityArticle
Created: User:Technical writer 2 (25 Jun 2007)
Last edited: hamishwillee (07 Sep 2012)

Contents

Overview

When TextField.DECIMAL is used to enter numbers, the comma character is used on some devices/language variants as the decimal point symbol instead of the point character.

Description

When the user enters numbers to a textField.DECIMAL-type textfield, some locales use the comma as the decimal pointer instead of the point.  This can cause some confusion if it is not taken into consideration when writing applications.

How to reproduce

Insert a text field of decimal type, enter a number, and try adding a decimal point.

Solution

If "hardcoded" numbers are also used in, for example, calculations, they must use point instead of comma – otherwise an exception will be thrown.

97 page views in the last 30 days.
×