W3C home > Mailing lists > Public > public-rdf-wg@w3.org > May 2011

Re: Proposal for ISSUE-12, string literals

From: Steve Harris <steve.harris@garlik.com>
Date: Fri, 13 May 2011 15:27:22 +0100
Cc: <public-rdf-wg@w3.org>
Message-Id: <80468B31-5FA5-4607-8C34-815D399CE68C@garlik.com>
To: Peter Frederick Patel-Schneider <pfps@research.bell-labs.com>
On 2011-05-13, at 14:09, Peter Frederick Patel-Schneider wrote:

> From: Steve Harris <steve.harris@garlik.com>
> Subject: Re: Proposal for ISSUE-12, string literals
> Date: Fri, 13 May 2011 07:07:36 -0500
> 
> [...]
> 
>> Hesitant -1 to, there are numbers that xsd:double for e.g. can
>> represent, that xsd:decimal doesn't promise to.  
> 
> Huh?
> 
> Did someone change the laws of arithmetic while I wasn't looking?

I hope not.

Inf, -Inf, and NaN are all not representable by xsd:decimal. Also, implementations are only required to support up to 18 decimal digits.

[ There are also IEEE-754 values that xsd:double can't represent, but it only matters in really crazy situations, so lets not go there. ]

- Steve

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Friday, 13 May 2011 14:27:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:42 GMT