Calling Math Bindable APIs

ILE math bindable APIs can be called through the intrinsic functions of an ILE language or through a call statement specific to the ILE language. In either of the calling conventions, you need to specify one or two input parameters for the math bindable API being called. The number of input parameters is indicated in Math API Descriptions under the No. Inputs column.

For example, if the number of input parameters for CEESxnnn is 1, the API is based on the following format:


  Required Parameter:

1 parm1 Input Data type
2 result Output Data type

  Omissible Parameter:

3 fc Output FEEDBACK

If the number of input parameters for CEESxnnn is 2, the API is based on the following format:


  Required Parameter Group:

1 parm1 Input Data type
2 parm2 Input Data type
3 result Output Data type

  Omissible Parameter:

4 fc Output FEEDBACK


CEESxnnn
The name of the math bindable API being called. The character x identifies the type of parameters being passed to the API, and may be one of the following:
I 32-bit binary integer. The data type is INT4.
J 64-bit binary integer. The data type is INT8.
S 32-bit single floating-point number. The data type is FLOAT4.
D A 64-bit double floating-point number. The data type is FLOAT8.
T A 32-bit single floating-complex number (both real and imaginary parts are 32 bits long). The data type is COMPLEX8.
E A 64-bit double floating-complex number (both real and imaginary parts are 64 bits long). The data type is COMPLEX16.

The character nnn identifies the API being called. contains information about each of the ILE math bindable APIs.

parm1
The first input parameter to the API. The declared type of this parameter must match the type specified by the x in the called API.

parm2
The second input parameter to the API. The declared type of this parameter must match the type specified by the x in the called API.

fc
This omissible parameter represents a 12-byte feedback code.

result
The output parameter containing the result of the computations performed by the API.

[ Back to top | ILE CEE APIs | APIs by category ]