Post Reply 
newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
08-23-2017, 06:32 PM
Post: #50
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-08-11]
(08-23-2017 05:19 PM)The Shadow Wrote:  I just found a really bizarre bug. I'm not certain where it is, but it seems under some circumstances, a number consisting of multiple 0's can exist. For example, 000.

I spotted it while rewriting a program 'FXND' (meant to duplicate the oldRPL command of the same name) to take advantage of the new commands. Here's the code for it:

<< STKPUSH DUP TYPE -> t << CASE t 10 == THEN 1 END t 56 == THEN IF OBJ-> NIP { / } 1 GET SAME NOT THEN STKPOP 1 END END 24 DOERR END >> >>

If I do:

0.6 ->Q FXND IDIV2

I get:

00000000

3

This does not occur when I do:

'3/5' FXND IDIV2

So the problem must lie in ->Q somehow. But that may only be a symptom, because numbers consisting of multiple 0's probably shouldn't exist in the first place?

I found it myself 2 days ago and fixed it, it was a denormalized zero that confused the text conversion.
Will come out in the next release.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-08-11] - Claudio L. - 08-23-2017 06:32 PM



User(s) browsing this thread: 2 Guest(s)