The Format group for the various types of number fields (integer,long,real,unsigned char,signed char) contains some or all of the following fields:
(For real type fields only) Enter the number of decimal places to display.
(For real type fields only) Display-only for database fields. For non-database fields that are real numbers, you use it to determine how fields are stored and processed, as opposed to how they are displayed. The aim is to store numbers as integers to minimise rounding errors. On storage, numbers are multiplied by the power of 10 corrsposding to their scale factor. On display, they are divided by the corresponding power of 10. For example:
| Precision | Scale factor | Displayed as | Stored as |
| 3 | 3 | 51.356 | 51356 |
| 3 | 0 | 51.356 | 51.356 |
| 2 | 3 | 51.36 | 51356 |
As a rule of thumb, set the scale factor to the same value as the precision. Occasionally, you may want to set the scale factor higher than the precision, for example in currency translations. Be aware that if you set the scale factor lower than the precision, the number is not stored as an integer, which defeats the purpose of using scale factors.
Enable this to accept the default formatting values for the field. These are derived from the user preferences.
Enable this to insert the separator between thousands before the decimal point. Disable it to display no separator before the decimal point
Enable this to insert the separator between thousands after the decimal point. Disable it to display no separator after the decimal point
Enter the character to be used for separating thousands (groups of three digits). This is normally a comma (,) in the UK and USA and a period (.) in continental Europe
Select the unit, if any, whose symbol you want to display. (Increase the length of the field to accommodate the symbol)
Enable this to specify that numbers are entered as for cash registers, for example:1.00 is entered as 100, 0.01 is entered as 1
Enable this to display negative values in the normal way, for example −3.7
Enable this to display negative values with a trailing minus sign, for example −3.7 displays as 3.7−
Enable this to display negative values enclosed in parentheses, for example −3.7 displays as (3.7)
Enable this to display nothing for zero values, for example, "0" displays as " "
Enable this to display nothing for leading zeros. This is primarily zeros intended for echoing typed characters during cash till input. For example, 0.37 displays as .37
Enter the decimal point character you want. This is normally a period (.) in the USA and UK and a comma (,) in continental Europe
Enable this to replace spaces with asterisks (*). This is useful in cheque printing, for example: 0.37 appears as ****0.37 in a field of length 8
For non database fields you can set up explicit validation ranges and a default value for the field (possibly used to initialise the edit feidl if the Clear First property is set). If you don't enable validation DP4 will use 0 as the default value, and create suitable low and high values based on the input field type and length.
Database fields are always range-validated and defaulted using the data dictionary validation.
For non-database fields, enter the lowest/highest values permitted for the field. DP4 uses these values to validate field entry.
For non-database fields, enter the value to offer as a default for field entry.