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.

[225 byte] By [find_suvro@SDNa] at [2007-11-27 10:23:20]
# 1

Good question, Suvro, I'll be watching this thread for the answer.

Hope somebody knows.

Regards, Darryl

Darryl.Burkea at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

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

find_suvro@SDNa at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

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.

find_suvro@SDNa at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

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

suparenoa at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

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

find_suvro@SDNa at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

Well I get the same answer from the nokia forum as well : http://discussion.forum.nokia.com/forum/showthread.php?p=323682#post323682

find_suvro@SDNa at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

you're welcome...

sup@reno

suparenoa at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

Thanks from me too Supareno, found it interesting to know.

Regards, Darryl

Darryl.Burkea at 2007-7-28 17:21:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...