W3C home > Mailing lists > Public > public-expath@w3.org > March 2013

Re: Draft of Binary module

From: Florent Georges <fgeorges@fgeorges.org>
Date: Wed, 13 Mar 2013 19:07:37 +0100
Message-ID: <CADyR_r2RZXUM+2QcjeFxULU9L=Lq20GXcMGnk4jZzGA2ggVU2g@mail.gmail.com>
To: Adam Retter <adam@exist-db.org>
Cc: Michael Kay <mike@saxonica.com>, public-expath@w3.org
On 13 March 2013 18:20, Adam Retter wrote:

> An octet is implicitly in Base 8, so why would I then want to
> manipulate it as thought it were Base 10 (but without
> converting it to Base 10). This just doesnt make sense to me -

> If I understand correctly -

> bin:binary-to-octets(xs:hexBinary("FFFF"))  would give me (255, 255)

> The problem is that I now have two Base 8 values in a Base 10
> data type

  I don't really understand.  An octet is not more base 8 nor
base 10.  Neither is an integer.  They are abstractions of
numbers, they don't have any base (their lexical representations
have a base though).

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
Received on Wednesday, 13 March 2013 18:08:28 GMT

This archive was generated by hypermail 2.3.1 : Wednesday, 13 March 2013 18:08:29 GMT