lib/abaaso.js
function ( arg, direction ) {
		arg = number.parse( arg );

		if ( direction === undefined || string.isEmpty( direction ) ) {
			return number.parse( arg.toFixed( 0 ) );
		}
		else if ( regex.down.test( direction ) ) {
			return ~~( arg );
		}
		else {
			return Math.ceil( arg );
		}
	}
function ( arg, direction ) {
		arg = number.parse( arg );

		if ( direction === undefined || string.isEmpty( direction ) ) {
			return number.parse( arg.toFixed( 0 ) );
		}
		else if ( regex.down.test( direction ) ) {
			return ~~( arg );
		}
		else {
			return Math.ceil( arg );
		}
	}
function ( arg , direction ) { arg = number . parse ( arg ) ; if ( direction === undefined || string . isEmpty ( direction ) ) { return number . parse ( arg . toFixed ( 0 ) ) ; } else if ( regex . down . test ( direction ) ) { return ~ ~ ( arg ) ; } else { return Math . ceil ( arg ) ; } }
Rounds a number up or down

@method round
@param  {Number} arg       Number to round
@param  {String} direction [Optional] "up" or "down"
@return {Number}           Rounded interger
Rounds a number up or down