|
kevbrick Brick wrote:
> I've a simple question:
>
> I have a script that calculates a p-value, which is often a tiny number
> (i.e. 1e-80). I need the script to return the 1-p value but retain the
> precision. When I try to do this, matlab always returns 1 for p-values
> below 1e-15. Can anyone tell me how to retain the precision of the
> calculation ?
Besides the other response, I'd suspect that a probability estimate of
1E-80 is probably meaningless, anyway.
But, you could in the case in point generate the text result pretty
easily since it's the number of 9's of the exponent followed by the
remainder from 1.0 of p*1E(exp). (Not that I think printing that out
will do anybody any good... :) )
--
|