xHarbour Reference Documentation > Command Reference |
Defines the number of decimal places for displaying numeric values on the screen.
SET DECIMALS TO [<nDecimals>]
SET DECIMALS defines the number of decimal places for the display of numbers in text-mode applications. Note that the command affects only the display and not the accuracy of calculations with numeric values. If a number has more decimal places than <nDecimal>, the number is rounded for display.
Note: to activate a fixed number of decimal places for screen display, SET FIXED must be set to ON.
See also: | @...GET, @...SAY, SET FIXED, Set(), Str(), Transform() |
Category: | Output commands , SET commands |
Source: | rtl\set.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com