
11 Apr
2012
11 Apr
'12
11:38 p.m.
Vicente J. Botet Escriba wrote: ...
I want the library to avoid myself to apply these explicit operations. I don't want to see on my code a shift to apply a round. IMO rounding should be applied when the resolution decreases during a conversion and the shift must depend on the difference and the rounding policy.
I think we're saying the same thing here. In order to do arithmetic on fixed point types, (at least, addition/subtraction), we need to first align the binary points. This aligning of the binary points is 'shift', is is not? It may be followed by applying a rounding policy.