codeblockutil
Interface NumberFormatter.PrecisionSpecifier

Enclosing class:
NumberFormatter

public static interface NumberFormatter.PrecisionSpecifier

Specifies the "amount of precision" to use.


Method Summary
 int showAsDecimalThreshold()
          Returns the precision below which to display a number with e notation.
 int significantDigits(int precision)
          Returns the number of significant digits to display given the precision of a particular number.
 

Method Detail

significantDigits

int significantDigits(int precision)
Returns the number of significant digits to display given the precision of a particular number. Given a non-zero number x, significantDigits(Math.log10(Math.abs(x))) digits should be displayed.


showAsDecimalThreshold

int showAsDecimalThreshold()
Returns the precision below which to display a number with e notation.