The final line uses iPart({X,1}/Ans(1)), but this poses a problem, because sometimes a number like 6.99999 is returned, which causes the fraction to be off. I suggest using round({X,1}/Ans(1),0) instead, which will return a whole number also, but will always be the correct answer.
I'm sorry if this is the wrong place to post this, but it is the only place that I found where I could post without being a member. I just though that it is an easy fix that is easily overlooked because the problem happens so rarely. If I remember correctly, either 5/24 or 7/24 is a number that causes this error.
Thanks for letting us know! I actually caaught this right after you posted it.
Tom R.
Blacksmith, woodsman, patriot, and programmer.
If you could please help me with my application question also that would be great. It is really bothering me, and it also seems like an easy fix
Infortunately, that's not really the type of programming that I do. I do more "practical" programs, like for math. Here's what I do. Write down your program, then figure it pout on paper. And try unitedti.com. They are a great source of help.
Tom R.
Blacksmith, woodsman, patriot, and programmer.
Unfortunately UnitedTI is down right now… I've been on there looking for places I can help out :D
Z80 Assembly>English>TI-BASIC>Python>French>C>0
How long has it been down? A MYSQL backup can take sometimes up to a couple weeks:(
Tom R.
Blacksmith, woodsman, patriot, and programmer.
It was up earlier today… What does MYSQL mean? And why does it take so long? I know this is the wrong topic for this…
Z80 Assembly>English>TI-BASIC>Python>French>C>0
MYSQL is a way to back up the information on a database or website onto another database or website. Basically. It's doing a memory dumb from one calculator to another. A MYSQL upgrade, which is what it is doing now, basically means that the process has been optimized. It takes a long time, because the process uses redundant processes, in effect Repeat 4 commands, to not only search for related data, but also to make sure that it doesn't miss anything. It is a failsafe operation that I use on computers that I work on. Right now though I've taken a break from fixing computers and I am learning about blacksmithing which you can find out about here: forgebuilder.wikidot.com even though it's not quite up yet, and about being a woodsman.
Tom R.
Blacksmith, woodsman, patriot, and programmer.
Noice! Okee, I like the BASIC analogies. Plus, I'm an outdoors girl at heart :D When the chance presents itself, I usually hike around and camp out in the woods in the peace and quiet. It is nice to get away from the internet and new technology for a while. I have met a few blacksmiths and metal smiths, too, but not on a very personal level.
Z80 Assembly>English>TI-BASIC>Python>French>C>0
Thank you very much. This is also a math program, but I'm using the pictures to hide it so it looks like a stock ti app until a password is typed. And unfortunately this problem is not really an issue I can solve with my knowledge, it's more of a syntax and understanding the inner workings of apps
Ah, okay. Well an APP is actually assembly. What Basic Builder does is it is an actual APP, but it is filled with the data for BASIC programs. Then the App portion of it copies the BASIC data to programs and executes the programs. After it is finished, it deletes the programs it created.
Z80 Assembly>English>TI-BASIC>Python>French>C>0
What I meant is that I don't do a lot with apps, I just stick to basic. It's nice here, it's so soft and cuddly :D
Tom R.
Blacksmith, woodsman, patriot, and programmer.
^-^ I agree, TIBD is where I grew up in the programming world, it is always home. I will always be a BASIC programmer at heart, assembly programmer by insanity/hobby.
Z80 Assembly>English>TI-BASIC>Python>French>C>0
I'm not seeing the problem. Could you give an exact input for which this occurs? 5/24 and 7/24, along with their decimal analogues, seem to work just fine.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
I really don't remember exactly because it was a while ago, but in my program it was returning a fraction that could be reduced such as 4/24 and I realized that it was actually taking the ipart of 4.99999 for example. This was back when I was fairly new to programming, so in that instance I fixed it by adding .0001 before taking the ipart. I'm sorry that I don't remember the fraction. I will try to find it. I will let you know when I do.
I think he means that occasionally, the OS displays 5, but really it is 4.999999999999, so when you do iPart( or int(, you get 4. On the homescreen, if you do 4.99999999999999 and press enter, it will display "5". Then do one of these things:
-Try Ans=5 (you get 1)
-Try int(Ans (you get 4)
-try fPart(Ans (you get 1)
Occasionally, due to the error of complex routines, sometimes Ans will say it is equal to a number, yet other routines say otherwise.
Z80 Assembly>English>TI-BASIC>Python>French>C>0
I'm not exactly sure what this means but if I remember correctly, this error only happened in my program, but not when I made a separate program using only the routine. I checked many times to make sure the code was correct. The reason for the ipart is because sometimes the calculator returns numbers like 5.0000001 because of the rounding error. So in some cases it is also possible that the calculator return a value such as 4.9999999 for the same reason.
Ah, now that I see the actual routine we are talking about, I am not able to reproduce these results (except with really erroneous values).
Z80 Assembly>English>TI-BASIC>Python>French>C>0
I don't really know what was going on with my calculator, but I feel like replacing ipart with round is a very simple precaution in the rare instance that it does happen. I will keep searching for those numers that do return a false answer though.
You should get a membership. It's fun, free, and totally easy. Besides, all any of us really are is a cult that has been brainwashed by Texas instruments (must…buy…ti-89)
Tom R.
Blacksmith, woodsman, patriot, and programmer.
I actually have an nspire, but really have no idea how to use it because my school only uses 83/84s. One thing that I really like about the nspire's 84 keypad is that lower case mode is permanently enabled, so I can use lower case letters with ease anywhere in my programs. I probably will get a membership on this site. I just signed up for united ti this afternoon.
Lol. When I first started I thought "OMG, now I need a TI-89!!" But then I learned that it was 68k, not z80, based and I really didn't want to learn a whole new calculator language.
Projects: BexIDE (hold), Hadean.NET, Legend of Zelda: Link to the Future