Top Description Methods
com.ibm.icu.impl.number

public Interface MultiplierProducer

Known Direct Implementers
com.ibm.icu.number.ScientificNotation.ScientificHandler, com.ibm.icu.impl.number.CompactData

An interface used by compact notation and scientific notation to choose a multiplier while rounding.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The shift in powers of ten.
getMultiplier
(int
The power of ten of the input number.
magnitude
)

Maps a magnitude to a multiplier in powers of ten.

Method Detail

getMultiplierback to summary
public int getMultiplier(int magnitude)

Maps a magnitude to a multiplier in powers of ten. For example, in compact notation in English, a magnitude of 5 (e.g., 100,000) should return a multiplier of -3, since the number is displayed in thousands.

Parameters
magnitude:int

The power of ten of the input number.

Returns:int

The shift in powers of ten.