[Shootout-list] k-nucleotide golden answers

Simon Geard simon@whiteowl.co.uk
Tue, 29 Mar 2005 09:49:48 +0100


Daniel South wrote:

>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.
>  
>
Isn't it round to even:  30.305 -> 30.30 ; 30.315 -> 30.32 ?

Simon Geard