home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
TEXT
/
PDX_ALL.ZIP
/
TI135.ASC
< prev
next >
Wrap
Text File
|
1991-11-05
|
7KB
|
199 lines
PRODUCT : Paradox NUMBER : 135
VERSION : ALL
OS : DOS
DATE : November 5, 1991 PAGE : 1/3
TITLE : An Explanation of Numeric Formats in Form View
When formatting numeric fields in Form View it is necessary to
take into account that Paradox reserves space for special
characters in addition to the actual numeric values contained in
the field. Even if you have allowed enough space for the number
itself when placing a regular field in the Form Editor you may
still get an overflow situation (i.e. asterisks filling the field
value) if you do not also account for these special display
characters. These characters include the plus sign[+], minus
sign[-], commas[,], parentheses[()], decimal point[.], and an
asterisk [*] which is used in Edit mode to show that not all
significant digits are being displayed.
Depending on the type of numeric format being used in a
particular field and the type of numeric field (i.e. Numeric [N],
Currency [$], Short Number [S]) different combinations of special
characters are implemented. Each special character has a fixed
place in the format. This must be taken into account when
deciding how much room is necessary to display the entire value.
In addition, the maximum number of decimal places will be
reserved before the integer section of the number is evaluated
for display.
Since the characters and their places are dependent on the type
of field (i.e. Numeric, Currency or Short) and on the format of
that field we will address the behavior of these characters on a
case by case basis.
THE NUMERIC FIELD TYPE:
General Format:
General Format always reserves a space for the minus sign[-].
Fixed Format:
Fixed format is the same as General format except the Fixed
format always fills in all unused decimal slots with zeros up to
the maximum setting.
Comma Format:
Comma format always reserves spaces for the Open Parenthesis [(]
and Close Parenthesis [)]. Paradox uses these characters instead
PRODUCT : Paradox NUMBER : 135
VERSION : ALL
OS : DOS
DATE : November 5, 1991 PAGE : 2/3
TITLE : An Explanation of Numeric Formats in Form View
of the minus sign to designate a negative number. In addition
commas will be used as thousands separators. These will be
inserted as needed depending on the size of the number. These
characters do not require reserved space if not used, but do take
up one character's space (per comma) when used.
Scientific Notation Format:
Scientific format reserves a space for the minus sign and four
spaces for the e+## or e-## at the end. Although the asterisk is
not shown when rounding occurs the space for the asterisk is
reserved.
Notes for all Numeric Fields:
Spaces will be reserved for a decimal point and the number of
decimal places for the current setting. If decimal places are
set to 0 then the decimal point space is not reserved.
The Numeric Field type always reserves the last character of the
field value for an asterisk. This asterisk will appear in edit
mode to notify the user that the current value displayed is
rounded or truncated to conform the current precision format.
For example, if the actual stored number is 123.123 but the field
is formatted to display only two decimal places the value in the
field will appear as 123.12* when you move to that record.
THE CURRENCY FIELD TYPE:
The Currency field type ($) is really a Numeric field type with a
Comma format rounded to two decimal places. All information
listed above for this type of Numeric format is accurate for a
Currency field.
THE SHORT NUMBER FIELD TYPE:
The Short Number field type is strictly an integer field. The
only reserved character space is for a minus sign.
PRODUCT : Paradox NUMBER : 135
VERSION : ALL
OS : DOS
DATE : November 5, 1991 PAGE : 3/3
TITLE : An Explanation of Numeric Formats in Form View
EXAMPLES:
All examples are compared to a 12 character formatted field width
(marked off by dashes) so that relative placement can be shown.
Note that the Short Number row only has a format width of 6
characters due to the built-in limitation of this field type.
The trailing asterisk will only be displayed if the number is
rounded in order to conform to the current decimal place setting.
Note that the asterisk is not displayed when all significant
digits are shown. This would only be visible if a user was in
Edit mode with the cursor resting on the record containing these
values. The actual stored value in this example is 1234.123,
except for the Short Number value which cannot store decimal
values.
┌────────────────┬──────────────────┬──────────────────┐
│ Decimal Places │ Positive Number │ Negative Number │
─────────┼────────────────┼──────────────────┼──────────────────┤
General │ 2 │ 1234.12* │ -1234.12* │
or Fixed │ │ ------------ │ ------------ │
─────────┼────────────────┼──────────────────┼──────────────────┤
General │ 3 │ 1234.123 │ -1234.123 │
or Fixed │ │ ------------ │ ------------ │
─────────┼────────────────┼──────────────────┼──────────────────┤
Comma or │ 2 │ 1,123.12* │ (1,234.12)* │
Currency │ │ ------------ │ ------------ │
─────────┼────────────────┼──────────────────┼──────────────────┤
Comma │ 3 │ 1,234.123 │ (1,123.123) │
│ │ ------------ │ ------------ │
─────────┼────────────────┼──────────────────┼──────────────────┤
Scientif.│ 2 │ 1.23e+03 │ -1.23e+03 │
Notation │ │ ------------ │ ------------ │
─────────┼────────────────┼──────────────────┼──────────────────┤
Scientif.│ 3 │ 1.234e+03 │ -1.234e+03 │
Notation │ │ ------------ │ ------------ │
─────────┼────────────────┼──────────────────┼──────────────────┤
Short │ N/A │ 1234 │ -1234 │
Number │ │ ------ │ ------ │
─────────┴────────────────┴──────────────────┴──────────────────┘