function formatInt(number, bytes) {
		if (typeof number !== "number") {
			number = "";
		} else {
			var max = Math.pow(256, bytes) / 2 - 1;
			number = Math.round(number);
			number = number >= 0 && number <= max ? number.toString() : "-1";
		}
		return number;
	}
/* Format a int number to fesr compliant specs
	 * If given number is negative or not compliant we format to -1.
	 * Supports int1/2/4.
	 */
Format a int number to fesr compliant specs
If given number is negative or not compliant we format to -1.
Format a int number to fesr compliant specs If given number is negative or not compliant we format to - 1 .
function formatInt(number, bytes) {
		if (typeof number !== "number") {
			number = "";
		} else {
			var max = Math.pow(256, bytes) / 2 - 1;
			number = Math.round(number);
			number = number >= 0 && number <= max ? number.toString() : "-1";
		}
		return number;
	}
function formatInt ( number , bytes ) { if ( typeof number !== "number" ) { number = "" ; } else { var max = Math . pow ( 256 , bytes ) / 2 - 1 ; number = Math . round ( number ) ; number = number >= 0 && number <= max ? number . toString ( ) : "-1" ; } return number ; }
Format a int number to fesr compliant specs
 If given number is negative or not compliant we format to -1.
Format a int number to fesr compliant specs If given number is negative or not compliant we format to - 1 .