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

Home -> Community -> Usenet -> c.d.o.misc -> function for translating string to number

function for translating string to number

From: Eitan M <no_spam_please_at_nospam_please.com>
Date: Tue, 23 Jan 2007 15:34:21 +0200
Message-ID: <ep52u3$cuu$1@news2.netvision.net.il>


Hello,

I want to translate string to number,
but if the string is not a number,
I want that the result will be some default (can be zero).

to_number('a') run an exception,
but I am looking for a function that return a default number, whether the string doesn't represent a numeric value, please.

Thanks :) Received on Tue Jan 23 2007 - 07:34:21 CST

Original text of this message

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