Re: Hexadecimal numbers in Eu

new topic     » goto parent     » topic index » view thread      » older message » newer message

D L wrote:

> It is just a matter of interpretation.
> Do you use 00000000-FFFFFFFF as an all positive range, or split it halfway to
> have positive and negative values?.
>
> The halfway is the tricky part, because it does not follow the "normal"
> decimal sequence, i.e. start at the most negative, thru zero and on to the most
> positive.
>
> You start at 0 dec/hex, go up to the largest positive (7F FF FF FF) and then
> continue counting from the most negative (80 00 00 00) up to -1 dec/FF FF FF FF
> hex.
>
> To get negative decimal values test hex, if it is #80 00 00 00 or larger then
> use formula:
> negative decimal=-(not_bits(hex)+1)
>
> All assuming hex is represented using 4 bytes (note: print %x seems to set the
> limit at 4 bytes).

I wrote something similar one week or so ago in a different thread ...

What question are you trying to answer here?
I can't even see to which post you are replying, neither formally nor
regarding the content. When you reply to a post, please quote the text
that you are referring to. For details e.g. see here:
http://www.netmeister.org/news/learn2quote.html

My first question in this thread has already been answered by Derek.
Then I asked Rob two additional questions. He didn't reply until now,
however, I don't think that anyone else can answer the questions.

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |  Math problems?
 \ /  against HTML in       |  Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].
  X   e-mail and news,      |
 / \  and unneeded MIME     |  http://home.arcor.de/luethje/prog/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu