newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
|
08-23-2017, 05:19 PM
(This post was last modified: 08-23-2017 05:21 PM by The Shadow.)
Post: #49
|
|||
|
|||
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-08-11]
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? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)