lib/libs/format.js
function decimal(_num, _precision) {

	// If _num is undefined, assing 0	
	if(_num === undefined) _num = 0;
	
	// If _precision is undefined, assigned 2
	if(_precision === undefined) _num = 2;

    n = Math.abs(_num);
    
    var sign = '';
    if(_num < 0)
    	sign = '-';
    	
    return sign + n.toFixed(_precision);
}
function decimal(_num, _precision) {

	// If _num is undefined, assing 0	
	if(_num === undefined) _num = 0;
	
	// If _precision is undefined, assigned 2
	if(_precision === undefined) _num = 2;

    n = Math.abs(_num);
    
    var sign = '';
    if(_num < 0)
    	sign = '-';
    	
    return sign + n.toFixed(_precision);
}
function decimal ( _num , _precision ) { // If _num is undefined, assing 0	 if ( _num === undefined ) _num = 0 ; // If _precision is undefined, assigned 2 if ( _precision === undefined ) _num = 2 ; n = Math . abs ( _num ) ; var sign = '' ; if ( _num < 0 ) sign = '-' ; return sign + n . toFixed ( _precision ) ; }
Returns a string of a number with the given presicion.

@param {Number} _num
@param {int} _precision
@api public
Returns a string of a number with the given presicion .