We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35b20a commit 38b42cfCopy full SHA for 38b42cf
Conversions/DecimalToHex.js
@@ -1,4 +1,4 @@
1
-function intToHex(num) {
+function intToHex (num) {
2
switch (num) {
3
case 10: return 'A'
4
case 11: return 'B'
@@ -10,7 +10,7 @@ function intToHex(num) {
10
return num
11
}
12
13
-function decimalToHex(num) {
+function decimalToHex (num) {
14
const hexOut = []
15
while (num > 15) {
16
hexOut.unshift(intToHex(num % 16))
0 commit comments