The set-num-format command changes the currency sign, thousand, and decimal point in an m conversion, at a local or global level. All of these signs must be a single character. The defaults for these are the previous settings.
The local setting overrides the global default setting. No local setting defaults to global setting. Local or global setting can be cancelled by not specifying the currency sign, the thousand mark, and the decimal mark parameters. Logging off cancels the local setting.
set-num-format {{cur}/{thou}/{dec}} {(options}
cur | Currency sign. |
thou | Thousand mark. |
dec | Decimal mark. |
(d | Sets a system-wide default: $/,/. Note: The
new value initially only applies to the current line issuing the command
and the default line. All other lines will recognize the new global
setting when they are logged off and then on again.
|
port.number | Specifies the port number to be set. Note: If both the port
number and a system-wide default are not specified, the current port
is implied.
|
Any modifications made while set-num-format changes are in effect affect file updates. For example, changing the decimal separator to a comma causes the system to write any fractional values into the file with the comma as the decimal separator (for example, the expression 3/2 is written as 1,5). To avoid this, file data should display in the file in the form of integer values, and displayed through the use of format masks.
There is a limit to the size of a numeric constant in BASIC if the decimal separator is expected to respond to the set-num-format command. At precision 4, the limit is "14073748835.5327". For each higher precision, the limit remains the same, but the decimal point in the number is moved left one place for each precision increase. For lower precisions, the limit remains the same, but the decimal point in the number is moved right one place for each precision decrease. This limit does not apply to non-literal numbers input by the user, read from a file, or composed by the program.
D3 Windows inherits its default currency, decimal, and thousands separator settings from Windows. Since D3 does not differentiate between number and currency, the decimal and thousands separators are inherited from the number settings in the Windows Regional Setting Properties.