Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2007-10-03 19:10:25

Suto, Gyuszi wrote:
> Michael Marcin wrote:
>> Suto, Gyuszi wrote:
>>> The biggest issue is agreeing on fixed vs. floating precision.
>> If it's going to be a template library why not both?
>> I personally need fixed-point but I can easily see situations where
>> using floating-point would be beneficial.
> The floating point has high resolution near zero and very low resolution
> at high values. My worry is that once you start moving, creating,
> intersecting
> shapes/lines at high values, you may not have a floating point value
> available for that coordinate. Then you snap to nearest, in which case
> your parallels are not parallel any more, your collinears are not
> collinear any more, etc. There are many problems with floating points.
> Maybe infinite precision, maybe rational numbers will work. I'm sure
> some of the readers of this thread have more experience with that
> regards
> Gyuszi

Ok, but then again, there are also problems with fixed point.
So, again, why does the library have to choose and not the
user, since we have templates?


Joel de Guzman

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