Going past the float size limits?
Grant Edwards
grante at visi.com
Fri Oct 26 20:00:12 EDT 2007
On 2007-10-26, jimmy.musselwhite at gmail.com <jimmy.musselwhite at gmail.com> wrote:
>> What in the world are you trying to count?
>
> The calculation looks like this
>
> A = 0.35
> T = 0.30
> C = 0.25
> G = 0.10
The bases in DNA?
> and then I basically continually multiply those numbers together. I
> need to do it like 200,000+ times but that's nuts.
Exactly. It sure looks like what you're doing is 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".
Can you explain what it is you're trying to calculate?
--
Grant Edwards
grante at visi.com
More information about the Python-list
mailing list