Harbour Reference Guide

 

SET FIXED

Set the number of decimal position to be displayed

Syntax

SET FIXED on | OFF | (<lFixed>)

Arguments

<lFixed> Logical expression for toggle

Description

This command activates a system wide fixed placement of decimals places shown for all numeric outputs.If the value of <lFixed> is a logical true (.T.),FIXED will be turned ON;otherwise it will be turned OFF.

When SET DECIMALS OFF is used, the follow rules aply to the number of decimal placed displayed.

AdditionSame as operand with the greatest number of decimal digits
SubractionSame as operand with the greatest number of decimal digits
MultiplicationSum of operand decimal digits
DivisionDetermined by SET DECIMAL TO
ExponentialDetermined by SET DECIMAL TO
LOG()Determined by SET DECIMAL TO
EXP()Determined by SET DECIMAL TO
SQRT()Determined by SET DECIMAL TO
VAL()Determined by SET DECIMAL TO
Examples
      SET FIXED ON
      ? 25141251/362
      SET FIXED OFF
Status

Ready

Compliance

This command is Ca-Clipper compliant

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30