locale « decimal « Java Data Type Q&A





1. Java i18n: Where to get the decimal grouping character for a locale    stackoverflow.com

Question: Where do I have to look when I want to know which character will be used for decimal grouping when using a given locale? I tried the following code: Locale locale = ...

2. Java DecimalFormat problem    stackoverflow.com

I would like to format numbers of type double with a German locale in Java. However something goes wrong since the output of the following code is : 0.0

package main;

import java.text.DecimalFormat;
import ...

4. Keypad decimal on non-US locales    forums.oracle.com

Hi there. Quick question, is there a way to map the keypad decimal to a comma (or the decimal of the default locale) for all input on an application? Also, how is this issue usually handled? If I use a jFormattedTextField with this format "#,##0.00", it will disregard the keypad decimal and only accept the comma key as a decimal. Basically, ...