xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET DECIMALS

Defines the number of decimal places for displaying numeric values on the screen.

Syntax

SET DECIMALS TO [<nDecimals>]

Arguments

<nDecimals>
This is a numeric value specifying the number of decimal places for screen output of numbers. The default value is 2. If <nDecimals> is omitted, the number of decimal places is set to zero.

Description

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.

Info

See also:@...GET, @...SAY, SET FIXED, Set(), Str(), Transform()
Category: Output commands , SET commands
Source:rtl\set.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe