Re: Test cases for approval

Hi Andy,

Our system uses the native Oracle number type (38 decimal digits) to do arithmetic calculations, and we use xsd:decimal as the result type for all arithmetic operations.

The answer to your question in Oracle would be "2"^^xsd:decimal.

- Matt


On 3/2/2011 12:21 PM, Andy Seaborne wrote:
>
>
> On 02/03/11 16:11, Matthew Perry wrote:
>> Hi Axel,
>>
>> For
>> :a :p "1"^^xsd:decimal .
>> :a :p "1"^^xsd:integer .
>> :a :p "1"^^xsd:float .
>> :a :p "1"^^xsd:double .
>>
>> You would get
>> :a :p "1"^^xsd:decimal .
>> :a :p "1E0"^^xsd:float .
>> :a :p "1E0"^^xsd:double .
>>
>> That is, floats stay floats, doubles stay doubles and everything else
>> goes to decimal.
>>
>> - Matt
>
> (this is mostly due to XSD evaluation rules)
>
> What is
>   "1"^^xsd:byte + "1"^^xsd:integer
> ?
>
> I can guess the lexical form :-) what's the datatype?
>
>     Andy

Received on Wednesday, 2 March 2011 18:07:20 UTC