lib/protocol.js
function encodeInteger(value) {
	if (value === null) {
		return values.NULL;
	} else if (!isNaN(value) && parseInt(value)==value) {
		return value + "";
	} else {
		throw new Error('Invalid integer value "' + value + '"');
	}
}
function encodeInteger(value) {
	if (value === null) {
		return values.NULL;
	} else if (!isNaN(value) && parseInt(value)==value) {
		return value + "";
	} else {
		throw new Error('Invalid integer value "' + value + '"');
	}
}
function encodeInteger ( value ) { if ( value === null ) { return values . NULL ; } else if ( ! isNaN ( value ) && parseInt ( value ) == value ) { return value + "" ; } else { throw new Error ( 'Invalid integer value "' + value + '"' ) ; } }
Encodes an integer according to the ARI protocol.

@param {Number} value input
@return {String} output
@private
Encodes an integer according to the ARI protocol .