[EMAIL PROTECTED] wrote:

> Hi Pekr,
>
> >>Hi,
>
> >>what is the easy way for addition and investigation of hex values?
> >>Let's  say I have h3cb and want to add h402. How to do it in an easy way?
>
> Will this do the job ???
>
> >> to-hex (to-integer #{03cb}) + (to-integer #{0402})
> == #000007CD

ah well :-) I was confused, because while working with 'issue values,
everything seemed be OK

->> to-hex (to-integer #3CB) + (to-integer #402)
== #000007CD
->>

Manual was talking about h3CB and h402 values, but once I tried:

->> to-integer #{FF}
== 255
->> to-integer #{3CB}
** Syntax Error: Invalid binary -- #{3CB}.
** Where: (line 1) to-integer #{3CB}
->>

I was confused why "3CB" doesn't work. Now I can see you aligned it using "0"
...

Now, we can get the same results using binary datatype and issue datatype,
what's the difference in following expressions?

->> enbase/base #{FF} 2
== "11111111"
->> enbase/base #FF 2
== "0100011001000110"

However, I still miss simple access to dword, word,  byte, nible, bit values
....

-pekr-

>
> >>
>
> Mike.

Reply via email to