Computer Science Canada Font |
Author: | Salman [ Sun Jan 20, 2013 6:58 pm ] | ||
Post subject: | Font | ||
What is it you are trying to achieve? I'm trying to use the Draw.Font command to draw numbers. How do we use it to draw integer variables What is the problem you are having? <Answer Here> Describe what you have tried to solve this problem <Answer Here> Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using <Answer Here> |
Author: | Tony [ Sun Jan 20, 2013 7:49 pm ] |
Post subject: | RE:Font |
But Font.Draw only draws strings. So you need to convert from an integer value (e.g. 42) to a string representation of how that number would look like (e.g. "42") |
Author: | Salman [ Sun Jan 20, 2013 9:29 pm ] |
Post subject: | RE:Font |
Would it be strint or intstr? |
Author: | DemonWasp [ Sun Jan 20, 2013 10:48 pm ] |
Post subject: | RE:Font |
Look at the Turing help. One converts integers to strings and the other converts strings to integers. It should be fairly obvious which one you want. |