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


Groups > comp.lang.c > #141596

Re: A final word on casting.

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c
Subject Re: A final word on casting.
Date 2019-03-02 01:10 +0000
Organization A noiseless patient Spider
Message-ID <87zhqedqtf.fsf@bsb.me.uk> (permalink)
References (9 earlier) <interval-20190228141733@ram.dialup.fu-berlin.de> <871s3sx7tb.fsf@bsb.me.uk> <floating-20190301005833@ram.dialup.fu-berlin.de> <87o96vwg0x.fsf@bsb.me.uk> <catchment-20190301210312@ram.dialup.fu-berlin.de>

Show all headers | View raw


ram@zedat.fu-berlin.de (Stefan Ram) writes:

> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>By number do you mean real?  If so, the interval is open at both ends,
>>with some real not in any interval, yes?
>
>   Let me put it this way:
>
>   Definition
>
>   I say that a rational number x is in the /catchment set/ of a
>   rational number y under a C implementation M, iff under M,
>   y is the rational value corresponding to the result of the
>   evaluation of a floating constant R that represents x.
>
>   End of Definition

That does not associate an interval with a floating-point bit pattern
which was, I thought, how you viewed floating-point numbers.  It's now
about what source forms go into which intervals.

Also, I find it a little confusing because it appears to beg the
question using "represents x" without explaining this other meaning for
represents.  For example, if 1.23 and 0.123e1 convert to different bit
patterns (as C permits them to) do these two floating constants
represent different x's?  I suppose they must but I don't think you
expected them to.

<cut>
-- 
Ben.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: A final word on casting. Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-02-25 23:26 -0800
  Re: A final word on casting. "I Set My Girlfriend's Pantyhose on Fire" <cdalten@gmail.com> - 2019-02-26 03:12 -0800
  Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-02-26 05:41 -0800
    Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-02-26 19:00 -0800
      Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-02-27 06:37 -0800
  Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-02-28 07:45 -0500
    Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-02-28 08:20 -0500
    Re: A final word on casting. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-02-28 15:16 +0000
      Re: A final word on casting. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-03-01 01:16 +0000
        Re: A final word on casting. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-03-02 01:10 +0000
    Re: A final word on casting. Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-03-06 08:36 -0800
      Re: A final word on casting. Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2019-03-06 09:04 -0800
        Re: A final word on casting. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-03-21 11:19 +0000
    Re: A final word on casting. Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-03-06 09:33 -0800
      Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-06 11:19 -0800
        Re: A final word on casting. Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-03-23 10:49 -0700
          Re: A final word on casting. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-25 12:06 -0700

csiph-web