function integerDecimal(replacement, conversion) {
    var integer = parseInt(replacement);

    if (isNaN(integer)) {
      integer = 0;
    }

    return addSignToFormattedNumber(integer, toString(integer), conversion);
  }
Formats a decimal integer type according to specifiers.

@ignore
@param  {string} replacement The string to be formatted.
@param  {ConversionSpecification} conversion The conversion specification object.
@return {string} Returns the formatted string.