
14 Jan
2005
14 Jan
'05
12:36 a.m.
Martin wrote:
IMO any kind of automatic rounding and precision should not be part of a basic_decimal type at all!
I assume you mean that we don't need a decimal type with a fixed number of decimals. There is an extension to the propsed standard that allows fixed number of decimals so there seem to be some who need it.
No, I'm sure that wasn't my intention.
The behaviour of basic_decimal should stick to the decimal proposal of Mike Cowlishaw and he explains very well in his FAQ section why it's not a good idea to have normalized decimal arithmetic:
Why do you mention "normalized decimal arithmetic"? Isn't that a way store floating point numbers or do you mean something else.
Did you read this proposal? br, Stefan