Skip to content

Commit a2caf88

Browse files
authored
Merge pull request vJechsmayr#39 from qdtroemner/patch-1
Added a Decimal to Hexadecimal function (Issue vJechsmayr#40)
2 parents 75c25e3 + d526b6e commit a2caf88

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function decimalToHex(num) {
2+
return num.toString(16);
3+
}
4+
5+
console.log(decimalToHex(2382716));

0 commit comments

Comments
 (0)