If ILE COBOL together with ILE run-time provide various features to perform arithmetic:
ILE provides several groups of bindable APIs which are available to every ILE compiler. The math APIs include CEE4SIFAC to compute factorials, and CEESDCOS to compute cosine.
For more information about the bindable APIs that you can use, refer to the CL and APIs section of the Programming category in the iSeries 400 Information Center at this Web site -http://publib.boulder.ibm.com/pubs/html/as400/infocenter.htm.
For the complete details of syntax and usage for ILE COBOL language constructs, refer to the WebSphere Development Studio: ILE COBOL Reference.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.