
-----------------------------------
Vorpal
Sun Dec 14, 2008 5:19 pm

Symbols using ASCII codes.
-----------------------------------
I've been assigned a project and for additional marks have been asked to include a degree symbol, I've learned that this can be accomplished by holding alt and typing 0176 on the number pad, and it seems to work everywhere other than in Turing, am I doing something wrong?

-----------------------------------
OneOffDriveByPoster
Sun Dec 14, 2008 5:31 pm

Re: Symbols using ASCII codes.
-----------------------------------
I've been assigned a project and for additional marks have been asked to include a degree symbol, I've learned that this can be accomplished by holding alt and typing 0176 on the number pad, and it seems to work everywhere other than in Turing, am I doing something wrong?I suppose you can edit your source file elsewhere.  You can also use chr().  The number for the degree symbol is probably dependent on the code page (likely Windows-1252).  Take a look:  http://en.wikipedia.org/wiki/Windows-1252.

-----------------------------------
DanielG
Sun Dec 14, 2008 5:43 pm

Re: Symbols using ASCII codes.
-----------------------------------
176 is the ascii code of it, you need to use chr(176) to print it


 put "5", chr(176)

the above is an example code that prints 5(degree symbol)

-----------------------------------
OneOffDriveByPoster
Fri Dec 19, 2008 10:44 am

Re: Symbols using ASCII codes.
-----------------------------------
176 is the ascii code of it, you need to use chr(176) to print it


 put "5", chr(176)

the above is an example code that prints 5(degree symbol)The link I gave gives you 176 (yes).  Also, there is no degree symbol in ASCII.

-----------------------------------
Euphoracle
Fri Dec 19, 2008 10:54 am

RE:Symbols using ASCII codes.
-----------------------------------
Alternatively, you can draw a small circle using drawoval.
