separator « decimal « Java Data Type Q&A

Home
Java Data Type Q&A
1.bigdecimal
2.biginteger
3.bit
4.Boolean
5.byte
6.Calendar
7.cast
8.character
9.Date Time
10.Date Time Format
11.decimal
12.Development
13.double
14.enum
15.float
16.hexadecimal
17.Integer
18.Number
19.Number Format
20.primitive
21.SimpleDateFormat
22.string
23.StringBuffer
24.StringBuilder
25.StringTokenizer
26.substring
27.TimeZone
Java Data Type Q&A » decimal » separator 

1. In Java, why does the decimal separator follow the Locale's language, not its country, and, more importantly, how does one override it?    stackoverflow.com

I'm working on an international project and have observed that, in Java, the choice of the decimal separator is based on the Locale's language, not its country. For example:

DecimalFormat currencyFormatter = ...

2. java decimal separator    stackoverflow.com

Is there a way to configure Java's decimal separators with JVM parameters? I'd know how to do it in code level, but unfortunately this time I cannot touch it. I have now: "1,322.03" and ...

3. Decimal separator in NumberFormat    stackoverflow.com

Given a locale java.text.NumberFormat:

NumberFormat numberFormat = NumberFormat.getInstance();
How can I get the character used as Decimal separator (if it's a comma or a point) in that numberformat? How can I modify this ...

4. Change decimal and thousands separators in excel using apache poi    stackoverflow.com

Does anyone know if using apache-poi library you can change the decimal and thousands separators for Microfost Excel? I need to export in excel some data from an web application, and ...

5. how to change default decimal separator    forums.oracle.com

I wrote in my original post, that I need to use % formating. It is because - there is quite a lot (say hunderts of kilobytes) of code that uses with String.format - there is quite a lot of configuration files that contain % formating - configuration must be backward compatible with older releases of application According to my knowleadge the ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.