Command SET FIXED Foundation

Defines whether a fixed number of decimal places are used when displaying numeric values.

Syntax
SET FIXED on | OFF | <lToggle>
Scope
thread-local
Parameters
<lToggle>
<lToggle> is a logical expression which must appear in parentheses. Instead of the logical expression, the option ON can be specified for the value .T. (true) or OFF for the value .F. (false). When .T. or ON is specified, numeric values are displayed using the number of decimal places set by SET DECIMALS.
Description

The command SET FIXED ON specifies that numeric values are displayed using the number of decimal places set with the command SET DECIMALS. The initial value of SET DECIMALS is two. This means that a call to SET FIXED ON, prior to a call to SET DECIMALS, formats numeric values with two decimal places. Only the display, and not the exactness of mathematical calculations, is affected by SET FIXED. When SET FIXED is ON, displayed values are rounded, not truncated.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.