[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] [PATCH] Make library tests compare numbers within epsilo
From: |
Sven Hartrumpf |
Subject: |
[Chicken-users] [PATCH] Make library tests compare numbers within epsilon |
Date: |
Wed, 29 May 2013 22:28:14 +0200 (CEST) |
Hi Peter.
Wed, 29 May 2013 19:06:26 +0200, Peter.Bex wrote:
> This patch should fix it, but it does in a roundabout way: converting
> the number to a string causes it to lose precision because of the default
> value of (flonum-print-precision). It's more explicit to check whether
> the two values lie within an epsilon of eachother, like the test egg does.
I hoped that there will be a better patch. Thanks, Peter.
> Could you try whether "make check" on a -O3-compiled CHICKEN succeeds
> with the attached patch?
It does!
(Also for -O2.)
Ciao
Sven
- Re: [Chicken-users] Is chicken supported on 32 bit Linux?, (continued)
- Re: [Chicken-users] Is chicken supported on 32 bit Linux?, Peter Bex, 2013/05/28
- Re: [Chicken-users] Is chicken supported on 32 bit Linux?, John Long, 2013/05/28
- Re: [Chicken-users] Is chicken supported on 32 bit Linux?, Peter Bex, 2013/05/28
- Re: [Chicken-users] Is chicken supported on 32 bit Linux?, Peter Bex, 2013/05/28
- [Chicken-users] Is chicken supported on 32 bit Linux?, Sven Hartrumpf, 2013/05/29
- [Chicken-users] [PATCH] Make library tests compare numbers within epsilon [Was Re: Is chicken supported on 32 bit Linux?], Peter Bex, 2013/05/29
- [Chicken-users] [PATCH] Make library tests compare numbers within epsilon,
Sven Hartrumpf <=
- Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon, Jim Ursetto, 2013/05/29
- Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon, Peter Bex, 2013/05/29
- Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon, Peter Bex, 2013/05/29
- Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon, Jim Ursetto, 2013/05/29
Re: [Chicken-users] Is chicken supported on 32 bit Linux?, John Cowan, 2013/05/28
Re: [Chicken-users] Is chicken supported on 32 bit Linux?, Mario Domenech Goulart, 2013/05/28
Re: [Chicken-users] Is chicken supported on 32 bit Linux?, John Maxwell, 2013/05/28