Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: f. to strin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 17 Topic 3979 of 4053
Post > Topic >>

Re: f. to string?

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 30, 2008 at 03:30 PM

On Mar 30, 3:01 pm, an...@[EMAIL PROTECTED]
 (Anton Ertl)
wrote:
> It also leads to proposals for "fixing" REPRESENT that break existing
> code and are very bad in other respects, too.

Is this the Represent_21.txt that you are referring to?

MAX-FLOAT-DIGITS as an environmental query, and:

(1) REPRESENT always returns the string the longer of n1 and MAX-FLOAT-
DIGITS

(2) 0 is 0.00E+1

(3) Round to nearest used

(4) n1=0 -> significand rounded to closer of 0 or 1

(5) flag2=false string at ( ca ) is left aligned and padded with
spaces

I never had to use REPRESENT portably, I only had to use it correctly
on a given system, so I was happily ignorant of the complexities of
accounting for all the varieties of semantics that are allowed in
Forth-94. Once it worked in gforth, it worked. And it was only really
scientific notation that I needed, for SNA data and therefore only
robust to three digits of accuracy, so I felt 6 significant digits was
ample.

If a proposed "fix" of REPRESENT is specifying one of the several
outcomes that are allowed under Forth-94, then it breaks code that
assumes more than the Forth-94 standard warrants.

However, from the side of a library side that namespace control, it is
simpler for me to pin down one set of semantics, and wrap the
implementation REPRESENT to deliver that.

There is, of course, the additional question of whether the semantics
in that proposed fix are the preferable semantics.

If a proposed "fix" of REPRESENT is specifying a facility that is not
compatible with Forth-94, then it should not be called REPRESENT.




 17 Posts in Topic:
f. to string?
Frank Buss <fb@[EMAIL   2008-03-29 14:22:05 
Re: f. to string?
Helmar <helmwo@[EMAIL   2008-03-29 06:26:31 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 09:22:10 
Re: f. to string?
anton@[EMAIL PROTECTED]   2008-03-29 20:15:50 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 17:00:03 
Re: f. to string?
"Ed" <nospam  2008-03-30 15:11:45 
Re: f. to string?
anton@[EMAIL PROTECTED]   2008-03-30 19:01:29 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 22:50:53 
Re: f. to string?
Bruce McFarling <agila  2008-03-30 15:30:42 
Re: f. to string?
"Ed" <nospam  2008-03-30 15:02:22 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 22:19:43 
Re: f. to string?
"Ed" <nospam  2008-03-31 11:02:54 
Re: f. to string?
Bruce McFarling <agila  2008-03-30 17:49:38 
Re: f. to string?
"Ed" <nospam  2008-04-01 14:00:42 
Re: f. to string?
Bruce McFarling <agila  2008-03-31 20:38:09 
Re: f. to string?
"Ed" <nospam  2008-04-04 17:53:28 
Re: f. to string?
Bruce McFarling <agila  2008-04-04 11:10:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 8:52:24 CDT 2008.