Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Methods Reference > Conversion Methods > Convert String to Integer MethodThe Convert String to Integer method converts an alphanumeric string to an integer. It returns an integer. If it cannot convert the value that the string argument contains to a number, then it returns the following value: For more information, see NaN Numbers. FormatTable 87 describes the arguments for the Convert String to Integer method. UsageIf you do not specify the radix argument or if the value that the radix argument contains is zero, then the Convert String to Integer method uses a value of 10 for the radix unless the value that the string argument contains begins with one of the following values:
CAUTION: If the passed string includes a leading zero, such as 05, then the Convert String to Integer method interprets the number as on octal. An argument that it interprets as an invalid octal creates a return value of zero. The values 08 and 09 are examples of invalid octal values. This method handles the string in the same way as the Convert String to Floating-Point Number method. For more information, see How the Convert String to Floating-Point Number Method Handles the String. Example |
Siebel eScript Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |