Boost logo

Boost :

From: Rainer Deyke (root_at_[hidden])
Date: 2001-05-09 16:53:47

----- Original Message -----
From: "Fernando Cacciola" <fcacciola_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, May 09, 2001 2:36 PM
Subject: RE: [boost] Fixed-Point Decimal Type

> I don't think that mixed operations with floating point values should give
> floating point result.
> If the class has absent/explicit constructors from fp types, this will
> prevent many usual expressions;
> and if it has regular constructors from fp-types it will produce too many
> temporaries and conversions.

Given that fixed point numbers are precise and floating points are not, any
conversion from float to fixed, like a conversion from float to int, is
likely to produce incorrect results.

Rainer Deyke (root_at_[hidden])
Shareware computer games           - 
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

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