#33982 - ProblemBaby - Tue Jan 11, 2005 10:51 pm
Hi
for example if I want to find out the slope of a line and represent it with a fixed integer how can I find what format I should use if I always want exact results.
for example:
I know that the difference in x never will be greater then 256
and I also know that the difference in y never will be greater then 64
how much accuracy do ? need for to always get exct results for y when I do (x*slope)>>acc .
And how do I find an accuracy that works for all possible numbers if I know the intervals.
Hope ou understand what I mean!
thanks in adv
for example if I want to find out the slope of a line and represent it with a fixed integer how can I find what format I should use if I always want exact results.
for example:
I know that the difference in x never will be greater then 256
and I also know that the difference in y never will be greater then 64
how much accuracy do ? need for to always get exct results for y when I do (x*slope)>>acc .
And how do I find an accuracy that works for all possible numbers if I know the intervals.
Hope ou understand what I mean!
thanks in adv