1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2017 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 package ohos.global.icu.impl.number; 5 6 /** 7 * An interface used by compact notation and scientific notation to choose a multiplier while rounding. 8 * @hide exposed on OHOS 9 */ 10 public interface MultiplierProducer { 11 /** 12 * Maps a magnitude to a multiplier in powers of ten. For example, in compact notation in English, a 13 * magnitude of 5 (e.g., 100,000) should return a multiplier of -3, since the number is displayed in 14 * thousands. 15 * 16 * @param magnitude 17 * The power of ten of the input number. 18 * @return The shift in powers of ten. 19 */ getMultiplier(int magnitude)20 int getMultiplier(int magnitude); 21 } 22