Mail Archives: djgpp/1999/01/18/15:24:45
Michael Stewart wrote:
>
> I have been having an annoying problem whilst writing a scan convertor.
> Hopefully someone will be able to see what I am doing wrong.
>
> The problem I have been having concerns the accuracy of fixed point values.
> The routine works as it should while using doubles, however when converting
> to fixed point values I loose an enormous amount of accuracy, to much to be
> accounted for by the accuracy of a 16.16 fixed point value.
>
> I have tried using Allegros fixed point routines instead of my own and I get
> the exactly the same problem. Can anyone see what I am doing wrong ?
Conversions between integer and `fixed' need to call the appropriate
routine (`itofix' or `fixtoi').
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -