×
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)
extkbeditor2 (Talk | contribs)
m
Line 2: Line 2:
 
__NOTOC__  
 
__NOTOC__  
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 +
{{KnowledgeBase
 +
|id=KIJ000693
 +
|platform=S60 3rd Edition
 +
|devices=SW version(s)
 +
|category=Java
 +
|subcategory=MIDP1.0/2.0
 +
|creationdate=June 25, 2007
 +
|keywords=
 +
}}
  
[[Category:Known Issue]]
+
==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.
  
{|border="2" cellspacing="0" cellpadding="4" width="100%"
+
==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.
====Subject:====
+
|colspan = "2"|Comma character used as decimal point symbol instead of point character in some locales on S60 3rd Edition
+
|KIJ000693
+
  
|-
+
==How to reproduce==
|rowspan = "2"|
+
Insert a text field of decimal type, enter a number, and try adding a decimal point.
==== ====
+
|Platform(s):
+
|colspan = "2"|Device(s), SW version(s):
+
  
|-
+
==Solution==
|S60 3rd Edition
+
If "hardcoded" numbers are also used in, for example, calculations, they must use point instead of comma – otherwise an exception will be thrown.
|colspan = "2"| 
+
  
|-
 
|
 
====Category:====
 
|colspan = "3"|Java
 
 
|-
 
|
 
====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. &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. <br>'''Solution:'''<br>If "hardcoded" numbers are also used in, for example, calculations, they must use point instead of comma – otherwise an exception will be thrown.
 
 
|-
 
|
 
====Creation date:====
 
|colspan = "3"|June 25, 2007
 
 
|-
 
|
 
====Last modified:====
 
|colspan = "3"|-
 
 
   
 
   
|-
+
[[Category:Known Issue]]
 
[[Category:Java ME]][[Category:MIDP 1.0]][[Category:MIDP 2.0]] [[Category:S60 3rd Edition]]
 
[[Category:Java ME]][[Category:MIDP 1.0]][[Category:MIDP 2.0]] [[Category:S60 3rd Edition]]

Revision as of 17:49, 20 October 2008

Template:KBKI


Article Metadata
Tested with
Devices(s): SW version(s)
CompatibilityArticle
Created: (25 Jun 2007)
Last edited: extkbeditor2 (20 Oct 2008)

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.

112 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×