Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: hex 2 dec !

Re: hex 2 dec !

From: Martin Haltmayer <Martin.Haltmayer_at_0800-einwahl.de>
Date: Sat, 11 Dec 1999 22:14:33 +0200
Message-ID: <3852B0A9.D03F9E5E@0800-einwahl.de>


Another idea for positive numbers:

SQL> select to_char (123456789, 'XXXXXXXXXXXXXXXXXXXX') from dual;

TO_CHAR(123456789,'XX


              75BCD15 and the reverse

SQL> select to_number ('75BCD15', 'XXXXXXXXXXX') from dual;

TO_NUMBER('75BCD15','XXXXXXXXXXX')


                         123456789

Maybe this is sufficient for you. It has further the advantage that these functions are Oracle internals and therefore very efficiently implemented.

Martin

cc wrote:
>
> hi all,
>
> Could anyone tell me where can I find a fuction in PL/SQL that coverts a
> hexdecimal number to decimal and vice versa. Has anyboby already
> implemented that function?
>
> 10q
Received on Sat Dec 11 1999 - 14:14:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US