Subject: ARMRCALC10
Function: int(y)
Use the int function to truncate a fractional number.
ARMRCALC does not support integer arithmetic. All calculations are done in real mode in the compiled calc program.
For each data term, B-type numbers are converted to real and are stored in a working buffer.
The calc program has access to the working buffer. Numbers are fetched and stored there by the calc program as required.
When we are done with the data term, we return the numbers to the data base. B-types will be truncated as they are stored in the data base.
The int function is required only if you need the integer form at an intermediate stage!
Use the int function when you extract Year, Month, and Day from a date which is stored as YMD as shown in the following calc program:
calc_start= yr=int(Date/10000) Year=yr+1900 Month=int((Date-yr*10000)/100) Day=Date-yr*10000-Month*100 calc_end=