|
|
HP Data Entry and Forms Management System (VPLUS) Reference Manual: HP 3000 MPE/iX Computer Systems > Appendix J HP PRECISION ARCHITECTURE HPPA INTRINSICS |
|
On the MPE/V and previous systems, Hewlett Packard represented real or floating point numbers in a format unique to each machine. However, on the MPE/XL systems, these numbers are represented in a format that conforms with an IEEE standard. This means that programs running in native mode on MPE/XL systems will deal with numbers stored in the IEEE format. VPLUS will be running in compatibility mode, however, and will thus deal with numbers stored in the MPE/V format. Currently, VPLUS offers intrinsics that will accept a real number n the MPE/V format, convert it to its equivalent external representation and put it into a form's data buffer. The four HPPA intrinsics described below have been developed to allow programs running in native mode to perform the same operations on a number stored in the IEEE format.
Copies character coded data contents from data buffer into an application, converting numeric value to IEEE floating point format.
The content of the field denoted by the field number is read from the data buffer. This content must be numeric but its data type need not be; numbers in a field of CHAR type can be converted.
The numeric value, stored in the buffer in character coded form, is converted to IEEE floating point format and then copied to the variable in the application. If errors occur during conversion, cstatus is set to the appropriate error code. If the requested field's error code is set, its value is moved to the variable but cstatus is set to an error code. Copies character coded data contents from data buffer into an application, converting numeric value to IEEE floating point long format (64-bit).
The content of the field denoted by the field number is read from the data buffer. The content of the field must be numeric, but its data type need not be; numbers in a field of CHAR type can be converted.
The numeric value, stored in the buffer in character coded form, is converted to IEEE floating point long format and then copied to the variable in the application. If errors occur during conversion, cstatus is set to the appropriate error code. If the requested field's error code is set, its value is moved to the variable but cstatus is set to an error code. Writes a floating point number in IEEE standard format from an application to a specified field in the form data buffer, converting the value to character set coded external representation.
This intrinsic converts an IEEE floating point real number to its character coded form and writes the converted value to a particular field in the data buffer, right justified. The exact format of the written data depends on the type of destination field. For example, if the number "34.56" were put to a field of type DIG, the result would be "34" since such a field may contain only the digits 0 through 9. The destination field is identified by the field number assigned by FORMSPEC, and must be defined as a numeric field, that is, type NUM, IMP or DIG. If the specified field had an error, VPUTIEEREAL will clear the field's error flag and decrement numerrs.
Writes a floating point number in IEEE standard long format from an application to a specified field in the form data buffer, converting the value to character set coded external representation.
This intrinsic converts an IEEE floating point long number to its character coded form and writes the converted value to a particular field in the data buffer, right justified. The exact format of the written data depends on the type of the destination field. For example, if the number "34.56" were put to a field of type DIG, the result would be "34" since such a field may contain only the digits 0 through 9. The destination field is identified by the field number assigned by FORMSPEC, and must be defined as a numeric field, that is, NUM,IMP or DIG. If the specified field had an error, VPUTIEEELONG will clear the field's error flag and decrement nuerrs.
The HP322095 utility provides you with a simple way to confirm the versions of both the native mode software and the compatibility mode software that you are currently running on the system. HP322095 resides in the PUB.SYS group and account. You can use it by typing the MPE command.
The screen will display the product name and version as well as the version number of each segment of the software. This is to indicate any patches that may have a version number different from the product. This is a quick way to test whether native mode is moving through to compatibility mode on the MPE/XL system, and hence to confirm that the VPLUS software is accessible in compatibility mode. When you run HP32209S, the screen displays the information in the format shown in the following example, first for native mode and then for compatibility mode. In this example, VPLUS native mode is enabled and the VPLUS switch to compatibility mode is disabled.
|
|