[retroforth] Re: unwanted '-' printing hex words

  • From: "Helmar Wodtke" <helmwo@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Mon, 24 Jan 2005 14:50:26 +0100

retroforth@xxxxxxxxxxxxx schrieb am 24.01.05 14:14:46:
> 
> I'm wondering if any other bases should have the - displayed when
> printing. For hex and binary it doesn't make sense, but for decimal
> and maybe octal it does. Consider this:
> 
> decimal -10 .
> 10
> 
> that would *not* be the right response IMO.
But 4294967286 would be the right answer.

Bis dann,
Helmar

BTW: My code was wrong since a used a broken >if ... ;)
: sign dup -1 >if ;; then negate '- emit ;


-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-pkcs7-signature
-- File: smime.p7s
-- Desc: S/MIME Cryptographic Signature



Other related posts: