[Shootout-list] k-nucleotide golden answers

Daniel South WildCard_25@HotMail.Com
Tue, 29 Mar 2005 19:59:51 +1000


Simon Geard wrote:
| 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 ?

Good point. This is statistical data after all so the statitical 
definition of round should be used.

Daniel South