Re: Help on String.int2String

Posted by ivant on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Help-on-String-int2String-tp4030582p4030583.html

I see one problem with handling negative numbers. Hint: look at the while loop.

The code for the positive numbers looks correct. Are you using the "standard" String and other OS classes, or your own implementations? The problem could be in String.appendChar.