I ran the following simple test and no errors were encountered.  I say 
there is no bug in the StDev calculation.   Hence I suggest you check to 
see what  values your variables intCnt and intStDev are actually being 
set to.  You could use a Pintln statement such as:
Println Symbol, ", ", intCnt, ", ", intStDev;  // to inspect the values 
of your variables.

Input = "sample.lst";
Output = "results.lst";

Println Symbol, ", ", StDev(-21, -40);

donpickdonpick wrote:
>
> I am running QP scans version 2.3 Build 3,0,0,0,0
>
> I am trying to calculate Standard deviation.
>
> The print line is:
> println StDev(intCnt,intStDev);
>
> where intCnt = -21 and intStDev = -40
>
> I keep getting the error "first param must be > second param"
>
> Well, -21 is greater than -40.
> I ran the following:
> if intCnt > intStDev then
> println "yes";
> endif;
>
> The scan printed 'yes' many times.
>
> Is there a bug in StDev calculation?
>
>  

Reply via email to