Re: how to compare variables in hex format?

From: Rostam <rostamseddiq_at_web.de>
Date: 26 Jul 2001 08:52:33 -0700
Message-ID: <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 - 17:52:33 CEST

Original text of this message