Re: Draft of Binary module

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 UTC