diff options
author | Marvin Borner | 2018-11-07 18:02:36 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 18:02:36 +0100 |
commit | 824a2d9f587ca017fc71b84d835e72f54f9c87c4 (patch) | |
tree | 765267ea4686f752aad1f69930cfee5680cc494a /node_modules/locutus/php/math/dechex.js.map | |
parent | fe75612e86b493a4e66c4e104e22658679cc014f (diff) |
Began rewrite
Diffstat (limited to 'node_modules/locutus/php/math/dechex.js.map')
-rw-r--r-- | node_modules/locutus/php/math/dechex.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/dechex.js.map b/node_modules/locutus/php/math/dechex.js.map new file mode 100644 index 0000000..45c2442 --- /dev/null +++ b/node_modules/locutus/php/math/dechex.js.map @@ -0,0 +1 @@ +{"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"]}
\ No newline at end of file |