
"John C. Femiani" <john.femiani@asu.edu> writes:
Anthony Williams wrote:
"John C. Femiani" <john.femiani@asu.edu> writes:
Also, do your implementations for /= and *= actually round? You actually seem to be using the round policy for conversions, is that right? Have you looked at the numeric/conversion stuff? (I haven't grokked it yet).
The division throws away the lower "frac_bits" of the result: So why doesn't it use the rounding policy? I kind of expect it to be used anytime quantization occurs.
I'll leave Neal to answer that (it's his code), but getting division right is a pain. If you followed the link to my code, you'll see that correct division is not trivial. Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL