|
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
a
> 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 - http://rainerdeyke.com "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk