A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Find out decimal point character of locale
Joined: Dec 03, 2004
Dec 22, 2004 16:08:00
how can I find out which character is used to display a decimal point with a given locale?
Joined: Jan 30, 2000
Dec 22, 2004 17:18:00
DecimalFormatSymbols dfs = new DecimalFormatSymbols( Locale.GERMAN ); System.out.println( dfs.getDecimalSeparator() );
"I'm not back." - Bill Harding,
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Find out decimal point character of locale
Formatting floating point numbers
Validate Numeric User Input
Converting double to int.
Packed decimal conversion - Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015