code: function round(float, digits) {
  		if(digits == null) {
  			return Math.round(float);
  		}
  		var round = 10 * digits;
  		return Math.round(float * round) / round;
  	}
docs: round to 1 digit
  @param float
  @param [digits]
  @returns {number}