Skip to content

Commit 908f0f9

Browse files
authored
Added Decimal To Octal Conversion (Issue vJechsmayr#41)
Base 10 to Base 8
1 parent 75c25e3 commit 908f0f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

NumberConvertions/DecimalToOctal

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

0 commit comments

Comments
 (0)