[Shootout-list] k-nucleotide golden answers

Dave davejf@frontiernet.net
Tue, 29 Mar 2005 08:14:43 -0600


----- Original Message ----- 
From: "Daniel South" <WildCard_25@HotMail.Com>
To: "Shootout ML" <shootout-list@lists.alioth.debian.org>
Sent: Tuesday, March 29, 2005 12:20 AM
Subject: Re: [Shootout-list] k-nucleotide golden answers


> James McIlree wrote:
> | Somehow, I'm getting a different answer for 30305/100000
> | than you are. I think the answer should indeed be 30.30, but
> | I am not a fp whiz.
>
> Rounding error. 30.305 rounds to 30.31. 0.005 rounds up, 0.004 rounds
> down.
> I'm guessing you might just be dropping everything after the second
> decimal place instead of rounding.
>
> Daniel South
>

Same with the D implementation - I think I ended up using a temporary and/or 
experimenting with the order of operations where I normally wouldn't have so 
the output would match the 'golden standard'.

>
> _______________________________________________
> Shootout-list mailing list
> Shootout-list@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/shootout-list
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 3/27/2005
>
>