xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET FIXED

Toggles fixed formatting for displaying numbers in text-mode.

Syntax

SET FIXED on | OFF | (<lOnOff>)

Arguments

ON | off | (<lOnOff>)
The option toggles if numeric values are displayed with a fixed number of decimal places, or not. The default is OFF, or .F. (false). When set to ON or .T. (true), numbers are displayed with SET DECIMALS number of decimal places.

Description

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.

Info

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


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