Increasing precision in octave
Ben Abbott
bpabbott at mac.com
Fri Jun 20 10:06:49 CDT 2008
On Friday, June 20, 2008, at 10:43AM, "DimitryASuplatov" <genesup at gmail.com> wrote:
>Hello,
>I want to calculate the p-value with high precision.
>I mean that when I use normal_cdf function I get
>
>normal_cdf (real(24),m,s)
>ans = 1
>
>and "1" is not enough precision for me. I want to see something like
>0.999999999999999999999888
>
>How to do that?
>
>Thank you!
Does this work for you?
disp (sprintf ("%26.24f", norm_cdf(real(24), m, s)))
Ben
More information about the Help-octave
mailing list