Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #14726

Re: CfV: S>F and F>S

From stephenXXX@mpeforth.com (Stephen Pelc)
Newsgroups comp.lang.forth
Subject Re: CfV: S>F and F>S
Message-ID <501d142c.224910510@192.168.0.50> (permalink)
References <2857190.v9o6eJ1jg5@sunwukong.fritz.box> <19171400958435@frunobulax.edu> <460a84e8-4c40-41d9-9c0a-cfc984740adf@j8g2000yqb.googlegroups.com>
Date 2012-08-04 12:30 +0000

Show all headers | View raw


On Sat, 4 Aug 2012 04:50:19 -0700 (PDT), Krishna Myneni
<krishna.myneni@ccreweb.org> wrote:

>As Anton points out, this is round towards zero, and the language was
>apparently ambiguous enough for at least one major Forth system to
>implement it differently.

Our change notes suggest that the discussion was in October 2002.

The rationale behind the now-deprecated behaviour was that other
FP words are permitted to be sensitive to a current rounding mode.

>I believe you posted that discrepancy a few
>years ago, Marcel. In the discussion which ensued, the consensus was
>that the spec was clumsily written, and trying to indicate round
>towards zero. I recall Stephen Pelc saying that VFX Forth would be
>fixed to conform to this interpretation. So, it would be worthwhile to
>clean up the spec for "F to D".

I agree.

A side effect of the discussion was that we had to introduce FR>D
and FR>S, which behave according to the current rounding mode, in
order to preserve the previous functionality.

The most convincing argument for the new behaviour is that the FSL
requires it.

Stephen

-- 
Stephen Pelc, stephenXXX@mpeforth.com
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

CfV: S>F and F>S anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-02 16:51 +0000
  Re: CfV: S>F and F>S mhx@iae.nl (Marcel Hendrix) - 2012-08-02 22:28 +0200
    Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-02 23:36 +0200
  Re: CfV: S>F and F>S Krishna Myneni <krishna.myneni@ccreweb.org> - 2012-08-03 04:39 -0700
    Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-03 19:56 +0200
      Re: CfV: S>F and F>S mhx@iae.nl (Marcel Hendrix) - 2012-08-03 21:18 +0200
        Re: CfV: S>F and F>S anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-04 09:50 +0000
          Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-04 21:51 +0200
            Presence of standard words (was: CfV: S>F and F>S) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-05 11:07 +0000
              Re: Presence of standard words (was: CfV: S>F and F>S) stephenXXX@mpeforth.com (Stephen Pelc) - 2012-08-05 11:34 +0000
                Re: Presence of standard words (was: CfV: S>F and F>S) Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-05 13:59 +0200
                Re: Presence of standard words (was: CfV: S>F and F>S) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-06 11:22 +0000
        Re: CfV: S>F and F>S Krishna Myneni <krishna.myneni@ccreweb.org> - 2012-08-04 04:50 -0700
          Re: CfV: S>F and F>S stephenXXX@mpeforth.com (Stephen Pelc) - 2012-08-04 12:30 +0000
            Re: CfV: S>F and F>S C G Montgomery <cgm@physics.utoledo.edu> - 2012-08-05 09:14 -0400
          Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-04 21:47 +0200
      Re: CfV: S>F and F>S Krishna Myneni <krishna.myneni@ccreweb.org> - 2012-08-04 05:42 -0700

csiph-web