Omnimaga
Calculator Community => TI Calculators => TI-BASIC => Topic started by: Eeems on February 06, 2010, 02:15:42 am
-
I wad playing around with my calc at school and I figured out a easy way to display the % symbol on the homescreen. Just do this:
output(y,x+<how many digits in number>,"I%
output(y,x,<number>
anybody got a better way to do it?
This can also be converted to graphscreen, but it's a bit trickier to place it.
-
You could always use an Assembly program to get the actual % token and just display that instead :P
-
I know ;) but for those people who like pure basic, or don't want to go through tue trouble of using the asm program this works just as good. And it's only a little slower.
-
true true, its cool that you don't need the assembly programs after you recall it though, so it technicaly could be considered pure basic, just not pure basic while programing :P But i know what you mean :)
-
That brings new therms: Pure Pure TI-Basic and TI-Pure Basic.
You are getting a little picky about Basic purity. >_>
Besides using some ASM to get the % char, I think that is the best alternative to use.
-
I actually have been doing this for 7-8 years since back then there was no way to use % alone even with ASM helpers, since this char was not useable in BASIC programs until OS 1.15 came out, but that's a good trick for BASIC coders to know in case they want to do it the pure BASIC way (and keep their game compatible with older OSes)
-
When I still did BASIC, I always had a HUGE string on my calc with all the "inaccessible" tokens in it.
Cool trick,though, Eeems!
-
Thanks!
Yeah, this may be a little slower then the % char, but as DJ said, it keeps compatability with older OS's
-
I also use a HUGE string on my calc with all the "inaccessible" tokens in it.
Very nice trick Eeems!
-
I just have a program called XtraVars :P Not only does it have all the tokens, but also all the pics/strings/matrixes that you would ever need! ^^
-
Lol, yeah, I've used that too, but it's a little hard to program with it.
-
I use XtraVars too, but I find it easier to Rcl Str0 and then delete the unwanted characters to get the unacessible ones. :)