LEFT | RIGHT |
1 // © 2017 and later: Unicode, Inc. and others. | 1 // © 2017 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html#License | 2 // License & terms of use: http://www.unicode.org/copyright.html#License |
3 package com.ibm.icu.dev.test.numbers; | 3 package com.ibm.icu.dev.test.numbers; |
4 | 4 |
5 import static org.junit.Assert.assertEquals; | 5 import static org.junit.Assert.assertEquals; |
6 | 6 |
7 import org.junit.Test; | 7 import org.junit.Test; |
8 | 8 |
9 import com.ibm.icu.impl.number.FormatQuantity; | 9 import com.ibm.icu.impl.number.FormatQuantity; |
10 import com.ibm.icu.impl.number.FormatQuantity4; | 10 import com.ibm.icu.impl.number.FormatQuantity4; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 int udm = fq.getUpperDisplayMagnitude(); | 125 int udm = fq.getUpperDisplayMagnitude(); |
126 int ldm = fq.getLowerDisplayMagnitude(); | 126 int ldm = fq.getLowerDisplayMagnitude(); |
127 if (udm == -1) sb.append('.'); | 127 if (udm == -1) sb.append('.'); |
128 for (int m = udm; m >= ldm; m--) { | 128 for (int m = udm; m >= ldm; m--) { |
129 sb.append(fq.getDigit(m)); | 129 sb.append(fq.getDigit(m)); |
130 if (m == 0 && m > ldm) sb.append('.'); | 130 if (m == 0 && m > ldm) sb.append('.'); |
131 } | 131 } |
132 return sb.toString(); | 132 return sb.toString(); |
133 } | 133 } |
134 } | 134 } |
LEFT | RIGHT |