Issue While Converting "0" Prefixed String To Integer Using Str2int Routine (Doc ID 2229644.1)

Last updated on FEBRUARY 23, 2017

Applies to:

Oracle Communications Offline Mediation Controller - Version 6.0.0.3.0 and later
Information in this document applies to any platform.

Goal

On : 6.0.0.3.0 version,


Issue while converting "0" prefixed string to integer using str2int routine.

We are using str2int function to translate strings to integer values. In this case, while converting "0003810" as received from the network element into an integer value we are getting an error "The leading 0 is causing difficulties for the routine"
 
execute str2int("0000120");
you will be able to see the error message "The leading 0 is causing difficulties for the routine"

How to avoid the error?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms