Interface MultiplierProducer

    • Method Detail

      • getMultiplier

        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 - The power of ten of the input number.
        Returns:
        The shift in powers of ten.