Problem with extremely small real number

Fabio Z Tessitore fabioztessitore at libero.it
Mon Sep 3 17:46:49 CEST 2007


Il Mon, 03 Sep 2007 07:56:10 -0700, Andrea ha scritto:

> [cut]
> 
> I want to call factorial(2)//binomial(1024,2) for example, in this way
> trivially I obtain 0 as probability, how can I obtain the probability
> forcing this division to output extremely small real numbers????

int to float will help

print float(factorial(2))/binomial(1024,2)

bye



More information about the Python-list mailing list