So I made a mistake when inserting a ►Frac conversion into a program, resulting in the following line(s):
Code:
Now, this shouldn't have succeeded in displaying A/B as an actual fraction (it's just converting I, an integer, to a fraction...), and yet... it did. Ans was a genuine fraction, despite the token being definitely in the wrong place.
Even stranger, though, is that despite Ans being a fraction, L1(I) is not. ►Dec and its cousins have similar behavior, namely that Ans gets updated somehow after the value is stored properly in the destination. This occurs if called by a program or on the homescreen.
However, there is one remedy to this behavior: if a line like the above is the last line in a program, Ans is not updated. Any other line at all, even one that does not touch Ans, will cause the strange behavior described above.
I have no idea what is going on or if anyone has encountered this before. So if you know or you have, please advise. Thanks.
Code:
:A/B->L1(I►Frac
:Disp Ans
Now, this shouldn't have succeeded in displaying A/B as an actual fraction (it's just converting I, an integer, to a fraction...), and yet... it did. Ans was a genuine fraction, despite the token being definitely in the wrong place.
Even stranger, though, is that despite Ans being a fraction, L1(I) is not. ►Dec and its cousins have similar behavior, namely that Ans gets updated somehow after the value is stored properly in the destination. This occurs if called by a program or on the homescreen.
However, there is one remedy to this behavior: if a line like the above is the last line in a program, Ans is not updated. Any other line at all, even one that does not touch Ans, will cause the strange behavior described above.
I have no idea what is going on or if anyone has encountered this before. So if you know or you have, please advise. Thanks.