@Nonnegative
  public static int getCharacterCount (final int nValue)
  {
    // index is always one character less than the real size; that's why nPrefix
    // is 1 more!
    final int nPrefix = nValue < 0 ? 2 : 1;
    final int nRealValue = MathHelper.abs (nValue);

    for (int nIndex = 0;; nIndex++)
      if (nRealValue <= s_aSizeTableInt[nIndex])
        return nPrefix + nIndex;
  }
@ Nonnegative public static int getCharacterCount ( final int nValue ) { final int nPrefix = nValue < 0 ? 2 : 1 ; final int nRealValue = MathHelper . abs ( nValue ) ; for ( int nIndex = 0 ; ; nIndex ++ ) if ( nRealValue <= s_aSizeTableInt [ nIndex ] ) return nPrefix + nIndex ; }
Get the number of characters the passed value would occupy in a string
representation.<br>
Copied from java.lang.Integer#StringSize

@param nValue
The integer value to check. May be be positive or negative.
@return Number of characters required. Alyways &gt; 0.