Non-decimal radices/Convert: Difference between revisions

Scala solution added
(Scala solution added)
Line 2,734:
<tr align=right><td> 61</td><td> 23</td><td>2f</td><td>61</td></tr></table>
 
=={{header|ScratchScala}}==
<lang Scala>def backToBig(num: String, oldBase: Int): BigInt = BigInt(num, oldBase)
Hello, I'm a 12 year old boy. I have posted the Scratch solution to this problem [http://scratch.mit.edu/projects/26501854/ online at scratch.mit.edu]
 
def bigToBase(num: BigInt, newBase: Int): String = num.toString(newBase)</lang>
 
=={{header|Seed7}}==
Anonymous user