Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 79 of 134
Converts an integer to an Oracle number.
sword OCINumberFromInt ( OCIError *err, CONST dvoid *inum, uword inum_length, uword inum_s_flag, OCINumber *number );
The OCI error handle. If there is an error, it is recorded in err
and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet()
.
Pointer to the integer to convert.
Size of the integer.
Flag that designates the sign of the integer, as follows:
Given integer converted to Oracle number.
This is a native type conversion function. It converts any Oracle standard machine-native integer type, such as ub4 or sb2, to an Oracle number.
This function returns an error if the number is too big to fit into an Oracle number, if number
or inum
is null, or if an invalid sign flag value is passed in inum_s_flag
.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|