Re: how to compare variables in hex format?

From: Raffaele D'Alba <raffaele.d'alba_at_snamprogetti.eni.it>
Date: Thu, 26 Jul 2001 19:03:02 +0200
Message-ID: <3b604b35$1_at_adm.eni.it>


OK Rostam,

but I need to use comparisons with hex number inside the pl/sql syntax, in order to develop a package with byte-operations for a dex cript alghorithm.

the example I wrote was intended to consider the last 2 bytes of the array of char InData....

thankyou again, Raffaele

"
"Rostam" <rostamseddiq_at_web.de> wrote in message news:f3e48397.0107260752.5516c387_at_posting.google.com...
> "Raffaele D'Alba" <raffaele.d'alba_at_snamprogetti.eni.it> wrote in message
 news:<3b5ece05$1_at_adm.eni.it>...
> > Hi folks,
> >
> > I need to compare variables in hex format
> > for example: InData & 0x000000ff....
> >
> > anybody can you give me some hints?
> >
> > I'm working with Oracle7 Server 7.3.4.0.0 and PL/SQL 2.3.4.0.0
> >
> > Thanks
>
> Raffaele,
>
> ff translates into 255. Probably the easiest way to compare hex values
> is to use the calculator which is supplied with NT or Win2000, it has
> a "scientific" option which allows you to transfer numbers between
> decimal, octal and hexadecimal formats.
>
> Other than that you would need to look into the counting scheme for
> hex numbers, they range from 1-9 and then A, B, C, D, F. F would
> correspond to decimal 15. FF would correspond to 15*16^1 + 15*16^0 =
> 255
>
>
> Rostam
Received on Thu Jul 26 2001 - 19:03:02 CEST

Original text of this message