OLD | NEW |
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.impl.number; | 3 package com.ibm.icu.impl.number; |
4 | 4 |
5 /** | 5 /** |
6 * An interface used by compact notation and scientific notation to choose a mul
tiplier while rounding. | 6 * An interface used by compact notation and scientific notation to choose a mul
tiplier while rounding. |
7 */ | 7 */ |
8 public interface MultiplierProducer { | 8 public interface MultiplierProducer { |
| 9 /** |
| 10 * Maps a magnitude to a multiplier in powers of ten. For example, in compac
t notation in English, a |
| 11 * magnitude of 5 (e.g., 100,000) should return a multiplier of -3, since th
e number is displayed in |
| 12 * thousands. |
| 13 * |
| 14 * @param magnitude |
| 15 * The power of ten of the input number. |
| 16 * @return The shift in powers of ten. |
| 17 */ |
9 int getMultiplier(int magnitude); | 18 int getMultiplier(int magnitude); |
10 } | 19 } |
OLD | NEW |