Boost logo

Boost :

Subject: Re: [boost] [fixed_point] Request for interest in a binary fixed point library
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2012-04-11 19:38:06

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at