index.js
function(num){
    if(_.isUndefined(num) || num == 0)
        num = '00';

    if(_.isString(num) || _.isNumber(num))
        num = new BigNumber(String(num));

    if(isBigNumber(num))
        num = num.toString(16);

    return formatHex(num);
}
function(num){
    if(_.isUndefined(num) || num == 0)
        num = '00';

    if(_.isString(num) || _.isNumber(num))
        num = new BigNumber(String(num));

    if(isBigNumber(num))
        num = num.toString(16);

    return formatHex(num);
}
function ( num ) { if ( _ . isUndefined ( num ) || num == 0 ) num = '00' ; if ( _ . isString ( num ) || _ . isNumber ( num ) ) num = new BigNumber ( String ( num ) ) ; if ( isBigNumber ( num ) ) num = num . toString ( 16 ) ; return formatHex ( num ) ; }
Prepair numbers for raw transactions.

@method (formatNumber)
@param {Number|String|BigNumber} The object to be used as a number
@return {String} The padded, toString hex value of the number
Prepair numbers for raw transactions .