decimal separator in French version mobile
Hi,
Can anybody here tell me what will be the decimal separator if I use aTextField with type set asDECIMALin a J2ME app. Means will it be a'.'or a ','
Thanx in advance.
Hi,
Can anybody here tell me what will be the decimal separator if I use aTextField with type set asDECIMALin a J2ME app. Means will it be a'.'or a ','
Thanx in advance.
Good question, Suvro, I'll be watching this thread for the answer.
Hope somebody knows.
Regards, Darryl
An early reply to this will be anticipated... guys please... I'm eagerly waiting for an answer...
And thanks Darryl.
Message was edited by:
find_suvro@SDN
I actually missed to write something in the post.
It's about French version mobile and in French the decimal separator comes as a comma (,) not as a dot (.).
So my question is, is it also the default behavior of a TextField of type DECIMAL to take a comma (,) as the decimal separator in a French version mobile and a dot (.) otherwise.
according to the javadoc,
...
The implementation may display a period "." or a comma "," for the decimal fraction
separator, depending on the conventions in use on the device. Similarly, the implementation
may display other device-specific characters as part of a decimal string, such as spaces or
commas for digit separators. However, the only characters allowed in the actual contents of
the text object are period ".", minus sign "-", and the decimal digits.
...
i'm in France and it takes a comma "," so the answer is yes, comma is the default behavior of
a TextField of type DECIMAL in a application using French Locale
Hmm... seems I did some childish thing not looking into the doc...
But anyway, thanks for this man. U did save me from some unnecessary coding I was planning to do to implement the comma ",".
Thanks dude, dukes goes to u.
Regds,
SD
Well I get the same answer from the nokia forum as well : http://discussion.forum.nokia.com/forum/showthread.php?p=323682#post323682
you're welcome...
sup@reno
Thanks from me too Supareno, found it interesting to know.
Regards, Darryl