Retrieve Computational Attributes (RETCA)

Bound program access

Built-in number for RETCA is 145. RETCA ( selector : unsigned binary(4) literal value; its rightmost byte specifies the computational attributes to retrieve ) : unsigned binary(4) value which contains the computational attributes specified by selector

Description  The right-most byte of selector specifies the computational attributes to retrieve. The format of this byte is as follows:

Bit Definition
0-3 Reserved (must be 0)
4 Exception mask
5 Decimal floating-point rounding mode
6 Exception occurrence
7 Binary floating-point rounding mode

All other bytes of selector are reserved (must be 0).

The value returned by RETCA has the following structure:
Value returned by RETCA

Note: Any floating-point operations currently on the value stack will be computed prior to retrieving the computational attributes. Therefore, the effect of such floating-point operations on the exception occurrence byte, for example, will be reflected in the value returned by the function.

Authorization Required

Lock Enforcement

Exceptions