SET FIXED

SET FIXED

Category

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 following rules apply to the number of decimal placed displayed.

       Addition         Same as operand with the greatest 
                        number of decimal digits
       Subtraction      Same as operand with the greatest 
                        number of decimal digits
       Multiplication   Sum of operand decimal digits
       Division         Determined by SET DECIMAL TO
       Exponential      Determined 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

Compliance

Clipper

Seealso

SET DECIMALS, Exp(), Log(), Sqrt(), Val(), Set()

Advertisements

2 responses to “SET FIXED

  1. Pingback: Harbour Commands | Viva Clipper !

  2. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s