W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2003

RE: [F&O] 6.2.6 op:numeric-mod

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 2 Dec 2003 20:50:50 GMT
Message-Id: <200312022050.UAA02612@e3000>
To: Michael.Kay@softwareag.com
Cc: public-qt-comments@w3.org



> I have made the suggestion that idiv should be defined on all numeric types.
> This would mean that [10 idiv xdt:untypedAtomic("2.5")] returns 4, not 5 as
> it does currently. It would also mean (I think) that the expression [(a idiv
> b)*b+(a mod b) = a] becomes true for all numeric values a and b.


this would probably good, in which case mod should probably be _defined_
by that equality, otherwise floating point arithmetic being what it is
chances are that the two mathematically equivalent expressions either
side of the = will give different results for some value or other.

David
Received on Tuesday, 2 December 2003 15:51:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:03 GMT