mootools/mootools-core — pull request #2547 by MannyDev (2013-12-20 06:37:52+00:00)
Title: to base

Convert an integer to bin, hex, oct, works with signed numbers.

Number.implement("toBase", function(base){
return (this >>> 0).toString(base);
});

(-30).toBase(16) != (-30).toString(16);