";
+ row += "" + n + "/" + b + " | ";
+ row += "" + Math.floor(n / b) + " | ";
+ row += "" + (n % b).toFixed() + " | ";
+ row += "" + k + " | ";
+ row += "
";
+ n = Math.floor(n / b);
+ var tableRef = document.getElementById('cal2tbl').getElementsByTagName('tbody')[0];
+ var newRow = tableRef.insertRow(k);
+ newRow.innerHTML = row
+ }
+ document.getElementById("cal2result").innerHTML = "= (" + y + ")