code: function intLength(num) {
  		num = num.replace(/^\-/, '');
  		if (~num.indexOf('.')) {
  			return num.split('.')[0].length;
  		}
  		
  		return num.length;
  	}
docs: Returns length of integer part of number
  @param {String} num