HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
Chapter 4 161
Advanced Forms Design
SET
Numeric Type
When data is moved between numeric fields, the following formatting is performed:
Sign
Any plus sign is stripped from the source before the
number is moved to its destination. If the source is
negative, a minus sign is inserted to the left of the first
digit in the destination.
Decimal Point
If the source has an implied or actual decimal point (IMPn
or NUM[n] data type), the fractional part is rounded and/or
truncated or zero filled to conform to the number of
decimal places specified for the destination.
If the destination has no decimal position (NUMO, IMPO,or
DIG), any fractional part is rounded and/or truncated. If
the destination is NUM (floating decimal point), the number
is right justified after being stripped of trailing zeros
following the decimal point.
If the source specifies no decimal places (type is NUMO,
IMPO, or DIG) and if the destination has an implied or
actual decimal point, the fractional part is zero filled.
Note that if the length of the destination is too small, any
decimal places are rounded and truncated until the source
fits.
Commas
All commas in the source are removed.
Leading Zeros
Leading zeros are stripped in all cases.
The result is then placed, right justified, as shown in Table 4-8., in the destination field.
With Native Language Support, decimal and thousands indicators are
language-dependent in the NUM[n] and IMP[n] fields. When data is moved between fields
and automatic formatting occurs for data entered in any field, recognition, removal or
insertion of these decimal and thousands indicators also depends upon the local custom for
the native language specified for the forms file. The optional decimal symbols in constants
will be local custom-dependent. For more information on Native Language Support, see
Section 8.
Table 4-6. Automatic Formatting for Character Data
Source Destination
"ARMSTRONG" (9 characters) "ARMSTRONG∆" (10 characters)
"∆∆ARMSTRONG" (11 characters) "∆∆ARMSTRON" (10 characters)
"ARMSTRONG∆∆∆∆∆" (14 characters) "ARMSTRONG" (9 characters)