« Return to Thread: Re: [sc-users] (9/7).reciprocal.asFraction is buggy

Re: [sc-users] (9/7).reciprocal.asFraction is buggy

by nescivi :: Rate this Message:

Reply to Author | View in Thread

Hiho,

did anyone check this in?

sincerely,
Marije


On Wednesday 15 April 2009 22:34:51 James McCartney wrote:

> The primitive can be fixed by changing the two lines that look like this:
>
> if (maxDenominator < mediant_den || d == 0.0) {
>
> to this:
>
> if (maxDenominator < mediant_den || fabs(d) < 1e-5) {
>
> Also this fix should be removed:
>
> // catch special behaviour - fixes SF.net bug 1856972
> if(x == 0.2) {
> SetInt(slots+0, 1);
> SetInt(slots+1, 5);
> return errNone;
> }
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.):
> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

 « Return to Thread: Re: [sc-users] (9/7).reciprocal.asFraction is buggy