Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: PL/SQL "HEXTONUMBER"
Hi,
here you go:
CREATE OR REPLACE FUNCTION HEXTONUMBER (v_HexCode IN VARCHAR2) RETURN NUMBER IS
v_SIG NUMBER; v_SIGValue NUMBER; v_Token CHAR(1); v_TokValue NUMBER; v_Result NUMBER; v_Index NUMBER;
BEGIN
v_Result := 0;
v_SIG := LENGTH(v_HexCode);
FOR v_Index IN REVERSE 0 .. (v_SIG - 1) LOOP
show errors;
SELECT hextonumber('ca') FROM DUAL;
Andrey Bronfin schrieb:
>
> Dear lists !
> Does anyone have a PL/SQL procedure converting a hexadecimal value to a
> decimal one , please ?
> Thanks a lot in advance !
> DBAndrey
>
> * 03-9254520
> * 053-464562
> * mailto:andreyb_at_elrontelesoft.com
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Andrey Bronfin
> INET: andreyb_at_elrontelesoft.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
> ---------------------------------------------------------
> This Mail has been checked for Viruses
> Attention: Encrypted mails can NOT be checked!
>
> **
>
> Diese Mail wurde auf Viren geprueft
> Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
> ---------------------------------------------------------
-- ---------------------------- | Regards, | | Stefan Jahnke | | BOV AG | | @:D2 Vodafone, Abt.: FBOM | | Tel.: 0211/533-4893 | ---------------------------- -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stefan Jahnke INET: stefan.jahnke_at_d2vodafone.de Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Sep 04 2001 - 01:29:00 CDT
![]() |
![]() |