Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(301)

Unified Diff: icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java

Issue 315420043: DecimalFormat rewrite, Java Base URL: svn+icussh://source.icu-project.org/repos/icu/branches/shane/numberformat/
Patch Set: r39857: Last commit before merge to trunk. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java
===================================================================
--- icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java (revision 39589)
+++ icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java (working copy)
@@ -1267,7 +1267,7 @@
public StringBuffer format(com.ibm.icu.math.BigDecimal number,
StringBuffer toAppendTo,
FieldPosition pos) {
- if (MIN_VALUE.compareTo(number) >= 0 || MAX_VALUE.compareTo(number) <= 0) {
+ if (MIN_VALUE.compareTo(number) > 0 || MAX_VALUE.compareTo(number) < 0) {
// We're outside of our normal range that this framework can handle.
// The DecimalFormat will provide more accurate results.
return getDecimalFormat().format(number, toAppendTo, pos);

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b