[Home] [By Thread] [By Date] [Recent Entries]
On 09/02/2012 09:21, Clint Redwood wrote:
Hi!Presumably by "precision" you mean the number of decimal digits in the lexical form of the number. That means that trailing zero digits change the result, and since trailing zeroes are ignored for all the system-supplied numeric data types, it means you are outside the range of what the system data types can do. Drafts of XSD 1.1 included a "precision decimal" data type that was intended to meet this need - but it only defined the lexical and value space of the type, not the arithmetic rules for comparing and calculating with these values (which is why it was dropped from the final spec). I think in your position I would represent the values as elements of the form <value precision="12">17.16666667</value>, and then write your own function library with operations for comparing and calculating on these values. Michael Kay Saxonica
|

Cart



