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