Nitpick with FLOOR etc.
Michael Sperber
(07 Jul 2005 08:46 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(09 Jul 2005 00:50 UTC)
|
Re: Nitpick with FLOOR etc.
Michael Sperber
(11 Jul 2005 06:55 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(16 Jul 2005 02:01 UTC)
|
Re: Nitpick with FLOOR etc. Paul Schlie (16 Jul 2005 08:38 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(16 Jul 2005 17:42 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(16 Jul 2005 09:12 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(16 Jul 2005 18:19 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(17 Jul 2005 17:23 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(17 Jul 2005 17:35 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(17 Jul 2005 22:43 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(18 Jul 2005 01:43 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(18 Jul 2005 02:31 UTC)
|
Re: Nitpick with FLOOR etc.
bear
(18 Jul 2005 05:59 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(18 Jul 2005 18:57 UTC)
|
Re: Nitpick with FLOOR etc.
bear
(19 Jul 2005 01:35 UTC)
|
Re: Nitpick with FLOOR etc.
Alan Watson
(19 Jul 2005 20:30 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(21 Jul 2005 17:35 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(24 Jul 2005 23:15 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(18 Jul 2005 03:24 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(18 Jul 2005 18:24 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(18 Jul 2005 18:41 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(21 Jul 2005 23:36 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(22 Jul 2005 00:50 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(25 Jul 2005 00:54 UTC)
|
Re: Nitpick with FLOOR etc.
bear
(27 Jul 2005 15:56 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(01 Aug 2005 16:33 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(25 Jul 2005 01:16 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(25 Jul 2005 02:38 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(28 Jul 2005 01:11 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(28 Jul 2005 18:15 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(01 Aug 2005 16:59 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(02 Aug 2005 13:58 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(18 Jul 2005 17:39 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(18 Jul 2005 18:15 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(20 Jul 2005 19:24 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(20 Jul 2005 21:35 UTC)
|
Re: Nitpick with FLOOR etc.
bear
(20 Jul 2005 22:41 UTC)
|
Re: Nitpick with FLOOR etc.
Paul Schlie
(20 Jul 2005 22:47 UTC)
|
Re: Nitpick with FLOOR etc.
Aubrey Jaffer
(21 Jul 2005 01:31 UTC)
|
> | From: Michael Sperber <xxxxxx@informatik.uni-tuebingen.de> > | Huh. I was kind of expecting you to remove the "integers" sentence. :-) > > That is also a reasonable approach. > > | What are the return values for infinities supposed to be? > > From a mathematical point of view, it seems like a slippery slope. > Often, the result of ROUND, CEILING, FLOOR, or TRUNCATE is passed to > INEXACT->EXACT. If infinities are the only non-integers allowed to be > returned from these functions, should infinities be the only inexacts > allowed to be returned from `INEXACT->EXACT'? > > | Are these procedures allowed to signal an error in those cases? > > As SRFI-70 is now I believe the answer can be yes; because infinities > are non-integers and there is no closest integer. But if an > implementation lacks inexact bignums, then there is a closest integer, > namely the largest magnitude inexacts! > > If the stipulation that inexacts args produce inexacts results takes > priority over finding the closest integer, then only inexact integers > are eligible. For an implementation having IEEE-754 64.bit flonum > inexacts: > > procedure #i-/0 #i+/0 > ========= ===== ===== > > floor error 179.76931348623157e306 > > ceiling -179.76931348623157e306 error > > truncate -179.76931348623157e306 179.76931348623157e306 > > round -179.76931348623157e306 179.76931348623157e306 - are you proposing that a run-time error must be signaled; or more reasonably only that it may, and/or alternatively return -1/0 +1/0 ? [which I tend to view as being equivalent to #i-/0, #i+/0] - what about -0/1, +0/1 ? - should (= (floor x) (/ (ceiling (/ x))) [or reasonable approximation] ?