----- Original Message ----- 
From: "Christopher Coale" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 25, 2009 5:50 PM
Subject: Re: [c-prog] Re: moving average problem

> Well, the short answer, is you can't. You can do it if you use some kind
> of list that keeps the size, otherwise, there is no way to tell where
> the array ends unless you use a sentinel value - but that wouldn't work
> very well with a function like this.

    IS there a way I can keep some precision? calling the function from main 
I formatted it with printf's .2f\n two decimals to the right. I got 8.33 the 
function returned 8.00. I'd like to have 2 decimals to the right of the . 
precision.

Thanks much Christopher.

Bill

Reply via email to