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 12 of 17 Topic 3979 of 4053
Post > Topic >>

Re: f. to string?

by "Ed" <nospam@[EMAIL PROTECTED] > Mar 31, 2008 at 11:02 AM

"Bruce McFarling" <agila61@[EMAIL PROTECTED]
> wrote in message
news:5519e608-0eb9-44d8-abc3-f0cf1b40d096@[EMAIL PROTECTED]
> On Mar 30, 1:02 am, "Ed" <nos...@[EMAIL PROTECTED]
> wrote:
> > Note: this is an "old" version, which I only recommend for systems
> > which have the standard REPRESENT and can't otherwise upgrade.
>
> By upgrade, may I take it you mean has the features of REPRESENT as
> proposed in Represent_11.txt?
>
> ftp://ftp.taygeta.com/pub/Forth/Applications/ANS/Represent_11.txt
>
> That is, 0 is 0.00E+1, nearest rounding is used for representation,
> and a u of 0 gives the nearest rounding if the fp number handed to
> REPRESENT is the residual following the last significant place.
>
> Has that been put up for Forth200x? I'd vote for all of those, as well
> as a requirement that the buffer handed to REPRESENT be at least four
> characters.

That was a very early version.  The current (and likely final) spec is:
ftp://ftp.taygeta.com/pub/Forth/Applications/ANS/Represent_21.txt

It requires apps allocate a minimum buffer size of  MAX-FLOAT-DIGITS.
In practice most apps and forths already meet that.  Apps that dynamically
ALLOCATE the buffer should ask for  ( n ) MAX-FLOAT-DIGITS MAX chars.

I believe the spec is now solid and am leaving it for others to use as
they
see fit.  I've briefly tried it out on Win32Forth and some commercial
systems.

--
Once the new REPRESENT is installed, systems may wish to replace
their existing f/p output functions with a full set similar to C, Fortran.
FPOUT (included in the spec) is public domain which means it can be
embedded, or its routines used, in a forth without licensing or
restriction of any sort.




 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:51:56 CDT 2008.