commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent Worden" <br...@worden.org>
Subject Re: [math][patch] 1.4 dependency in FractionFormat
Date Mon, 13 Jun 2005 01:58:29 GMT
Good catch.  One thing you might want to do is override the minimum decimal digits by setting
that property to zero.

Brent

----- Original Message -----
From: "Phil Steitz" <phil.steitz@gmail.com>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Subject: [math][patch] 1.4 dependency in FractionFormat
Date: Sun, 12 Jun 2005 21:34:31 -0400

> 
> When building with 1.3, I discovered that the FractionFormat class
> introduced a 1.4 dependency.  The change below removes the dependency
> and the tests pass.  If there are no objections, I will commit this,
> which will fix the build on 1.3
> 
> --- src/java/org/apache/commons/math/fraction/FractionFormat.java	(revision
> 178359)
> +++ src/java/org/apache/commons/math/fraction/FractionFormat.java	(working 
> copy)
> @@ -150,7 +150,7 @@
>        * @return the default number format specific to the given locale.
> 
>        */
> 
>       private static NumberFormat getDefaultNumberFormat(Locale locale) {
> 
> -        NumberFormat nf = NumberFormat.getIntegerInstance(locale);
> 
> +        NumberFormat nf = NumberFormat.getNumberInstance(locale);
> 
>           return nf;
> 
>       }
> 
> Phil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message