On Sun, May 14, 2017 at 08:29:18PM +0000, Carl Mascott wrote:
> It looks to me like you are rounding on each iteration of the for-loop:
> 
> +    for (i = 0; rate > 9999 && i <= 3; i++) {
> +        rtmp = rate / 1000;
> +        if (rtmp < 9999)

This is only true in the last iteration.

> +            rtmp += (rate % 1000) / 500;
> +        rate = rtmp;
> +    }
> 
> Am I missing something?

Reply via email to