xHarbour Reference Documentation > Command Reference |
Toggles fixed formatting for displaying numbers in text-mode.
SET FIXED on | OFF | (<lOnOff>)
SET FIXED is used in text-mode applications for displaying numeric values with a fixed number of decimal places. The number of decimals defaults to 2 and can be changed with SET DECIMALS. If a number has more decimal places, the number is rounded for display, not truncated. Note that SET FIXED affects only the display and not the accuracy of calculations with numeric values.
See also: | Exp(), Log(), Round(), SET DECIMALS, Set(), Sqrt(), Val() |
Category: | Environment commands , SET commands |
Source: | rtl\set.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com