{"version":3,"sources":["../../../src/php/math/dechex.js"],"names":["module","exports","dechex","number","parseInt","toString"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,MAAjB,EAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIA,SAAS,CAAb,EAAgB;AACdA,aAAS,aAAaA,MAAb,GAAsB,CAA/B;AACD;AACD,SAAOC,SAASD,MAAT,EAAiB,EAAjB,EACJE,QADI,CACK,EADL,CAAP;AAED,CAlBD","file":"dechex.js","sourcesContent":["module.exports = function dechex (number) {\n // discuss at: http://locutus.io/php/dechex/\n // original by: Philippe Baumann\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: http://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript\n // input by: pilus\n // example 1: dechex(10)\n // returns 1: 'a'\n // example 2: dechex(47)\n // returns 2: '2f'\n // example 3: dechex(-1415723993)\n // returns 3: 'ab9dc427'\n\n if (number < 0) {\n number = 0xFFFFFFFF + number + 1\n }\n return parseInt(number, 10)\n .toString(16)\n}\n"]}