[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Increasing precision in octave
From: |
Ben Abbott |
Subject: |
Re: Increasing precision in octave |
Date: |
Fri, 20 Jun 2008 08:06:49 -0700 |
On Friday, June 20, 2008, at 10:43AM, "DimitryASuplatov" <address@hidden> 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