bug-gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gforth] [bug #49798] s>number? throws in a random 0


From: Anton Ertl
Subject: [Bug-gforth] [bug #49798] s>number? throws in a random 0
Date: Thu, 8 Dec 2016 08:25:46 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.5.0

Update of bug #49798 (project gforth):

                  Status:                    None => Invalid                
             Assigned to:                    None => anton                  

    _______________________________________________________

Follow-up Comment #1:

Note that the documented stack effect is:

s>number? ( addr u -- d f )

d is a double-cell integer, and .s will show two cells for it, with the 0
being the most significant half of the d (double-cell integer).  If you do

clearstacks s" 1001" s>number? . d. .s

"." prints the flag, "d." prints the d, and .s shows that nothing is left.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49798>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]