Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Brain freeze. Trouble naming a word.

0 views
Skip to first unread message

Fred

unread,
Nov 20, 2009, 6:55:55 PM11/20/09
to
What would be the proper way to name a word which will print a signed
number with the sign?
ie. +5 -12 +0 instead of no sign for positive numbers and zeros?

Fred

Jerry Avins

unread,
Nov 20, 2009, 7:00:17 PM11/20/09
to
Offhand, I would use S


--
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������

Elizabeth D Rather

unread,
Nov 20, 2009, 7:39:55 PM11/20/09
to

I'd call it +. (since . is the normal number display word).

Cheers,
Elizabeth

--
==================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================

Elizabeth D Rather

unread,
Nov 20, 2009, 7:43:38 PM11/20/09
to
Jerry Avins wrote:
> Fred wrote:
>> What would be the proper way to name a word which will print a signed
>> number with the sign?
>> ie. +5 -12 +0 instead of no sign for positive numbers and zeros?
> Offhand, I would use S
>
>
Plain S ? S. would be better, IMO. I like the visual connection with .
in words that display things.

Jerry Avins

unread,
Nov 20, 2009, 7:55:37 PM11/20/09
to
Elizabeth D Rather wrote:
> Jerry Avins wrote:
>> Fred wrote:
>>> What would be the proper way to name a word which will print a signed
>>> number with the sign?
>>> ie. +5 -12 +0 instead of no sign for positive numbers and zeros?
>> Offhand, I would use S
>>
>>
> Plain S ? S. would be better, IMO. I like the visual connection with .
> in words that display things.

The screen went black right there. I didn't get to add my name. the
doorbell rang, and I just got back. S, was my intent, but I paused to
consider pictured output.

Jerry

Jerry Avins

unread,
Nov 20, 2009, 7:56:47 PM11/20/09
to
Elizabeth D Rather wrote:
> Fred wrote:
>> What would be the proper way to name a word which will print a signed
>> number with the sign?
>> ie. +5 -12 +0 instead of no sign for positive numbers and zeros?
>>
>> Fred
>
> I'd call it +. (since . is the normal number display word).

I like it. It leaves letters for number bases, like H., etc.

m_l_g3

unread,
Nov 21, 2009, 4:24:58 PM11/21/09
to
On Nov 21, 3:56 am, Jerry Avins <j...@ieee.org> wrote:
> Elizabeth D Rather wrote:
> > Fred wrote:
> >> What would be the proper way to name a word which will print a signed
> >> number with the sign?
> >> ie.  +5  -12 +0  instead of no sign for positive numbers and zeros?
>
> >> Fred
>
> > I'd call it +. (since . is the normal number display word).
>
> I like it. It leaves letters for number bases, like H., etc.
>

Yes. +. is better than S. (on some systems S. was .S)
And for double numbers it should be +D. (and not D+. because there is D
+ that means addition)

Coos Haak

unread,
Nov 21, 2009, 8:19:51 PM11/21/09
to
Op Sat, 21 Nov 2009 13:24:58 -0800 (PST) schreef m_l_g3:

This way, we have two triples, a sign when negative, always a sign and
unsigned, perhaps the right aligned versions, or is that too much?
. +. U. .R +.R U.R
D. +D. UD. D.R +D.R UD.R

(Don't mention COBOL)

--
Coos

CHForth, 16 bit DOS applications
http://home.hccnet.nl/j.j.haak/forth.html

Fred

unread,
Nov 22, 2009, 8:29:06 PM11/22/09
to
Thanks
0 new messages