to base

Convert an integer to bin, hex, oct, <b>works with signed numbers</b>.


Number.implement("toBase", function(base){
        return (this >>> 0).toString(base);
});

(-30).toBase(16) != (-30).toString(16);