[Shootout-list] k-nucleotide golden answers

Daniel South WildCard_25@HotMail.Com
Tue, 29 Mar 2005 16:20:54 +1000


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