W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2004

RE: Question about decimal arithmetic

From: Michael Kay <mhk@mhk.me.uk>
Date: Mon, 5 Apr 2004 20:54:05 +0100
To: "'Michael Rys'" <mrys@microsoft.com>, "'Jeni Tennison'" <jeni@jenitennison.com>
Cc: <public-qt-comments@w3.org>, <jkenton@datapower.com>
Message-Id: <20040405195411.5D6DFA2C0E@frink.w3.org>

> I don't think deciding precision based on instance information is
> acceptable. Many type systems have precision (and scale) as a 
> type facet
> that should be determined based on the arguments.

A system that always maintained decimals to exactly 18 places would be
conformant with this proposal.
> 
> Also, I am not yet convinced that anything stricter than
> implementation-defined will be acceptable given the wide range of
> implementation platforms...
> 
I think it's clear that a specification that allows the result of 10 div 3
to be 3.5 is unacceptable to quite a few of our readers.

Michael Kay
Received on Monday, 5 April 2004 15:54:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:19 UTC