summaryrefslogtreecommitdiff
path: root/java/text/DecimalFormat.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-09-09 21:19:03 +0000
committerMark Wielaard <mark@klomp.org>2003-09-09 21:19:03 +0000
commitdb65abeaab6a2b9d08477e7e67e22fd0c8dfebff (patch)
tree992a6a61d4bfb16da390cadb18cc62b0b9ff7a39 /java/text/DecimalFormat.java
parent7c817314be803e4930eac890492ca7dd421d0679 (diff)
downloadclasspath-db65abeaab6a2b9d08477e7e67e22fd0c8dfebff.tar.gz
2003-09-09 Guilhem Lavaux <guilhem@kaffe.org>
* java/text/DecimalFormat.java (format): Don't immediatly round baseNumber to long. (setMinimumIntegerDigits): Call super. (setMinimumFractionDigits): Likewise. (setMaximumIntegerDigits): Likewise. (setMaximumFractionDigits): Likewise.
Diffstat (limited to 'java/text/DecimalFormat.java')
-rw-r--r--java/text/DecimalFormat.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/text/DecimalFormat.java b/java/text/DecimalFormat.java
index 0cf2d8fff..7c5d5b0ba 100644
--- a/java/text/DecimalFormat.java
+++ b/java/text/DecimalFormat.java
@@ -456,7 +456,7 @@ public class DecimalFormat extends NumberFormat
exponent = (long) Math.floor (Math.log(number) / Math.log(10));
if (minimumIntegerDigits > 0)
exponent -= minimumIntegerDigits - 1;
- baseNumber = (long) (number / Math.pow(10.0, exponent));
+ baseNumber = (number / Math.pow(10.0, exponent));
}
else
baseNumber = number;
@@ -871,22 +871,22 @@ public class DecimalFormat extends NumberFormat
public void setMaximumFractionDigits (int newValue)
{
- maximumFractionDigits = Math.min(newValue, 340);
+ super.setMaximumFractionDigits(Math.min(newValue, 340));
}
public void setMaximumIntegerDigits (int newValue)
{
- maximumIntegerDigits = Math.min(newValue, 309);
+ super.setMaximumIntegerDigits(Math.min(newValue, 309));
}
public void setMinimumFractionDigits (int newValue)
{
- minimumFractionDigits = Math.min(newValue, 340);
+ super.setMinimumFractionDigits(Math.min(newValue, 340));
}
public void setMinimumIntegerDigits (int newValue)
{
- minimumIntegerDigits = Math.min(newValue, 309);
+ super.setMinimumIntegerDigits(Math.min(newValue, 309));
}
public void setMultiplier (int newValue)