Feb. 14, 2013
11:09 p.m.
Add this method to String class: convertFromBase: sourceBase to: targetBase "Convert the receiver (who has to represent a number string) from the given source base to the given target base 'FFFF' convertFromBase: 16 to: 2 " ^(sourceBase asString,'r', self) asNumber printStringBase: targetBase And then try: 'FFFF' convertFromBase: 16 to: 10 'FFFF' convertFromBase: 16 to: 2 '11111110' convertFromBase: 2 to: 16 ... Have fun Torsten