SoFunction
Updated on 2025-02-28

js uses stack to implement decimal to octal, divisor and remainder


function ten2eight(x){
var s=[];
var r='';
while(x>0){
(x%8);
x=parseInt(x/8);
}
while(>0){
r=r+();
}
return r;
}