Going past the float size limits?

Stéphane Larouche stephane.larouche at polymtl.ca
Fri Oct 26 20:03:26 EDT 2007


 <jimmy.musselwhite <at> gmail.com> writes:

> The calculation looks like this
> 
> A = 0.35
> T = 0.30
> C = 0.25
> G = 0.10
> 
> and then I basically continually multiply those numbers together. I
> need to do it like 200,000+ times but that's nuts. I can't even do it
> 1000 times or the number rounds off to 0.0. I tried taking the inverse
> of these numbers as I go but then it just shoots up to "inf".

I suggest you add the logarithm of those numbers.

Stéphane




More information about the Python-list mailing list