SET DECIMALS

SET DECIMALS

Toggle the console display

Syntax

      SET DECIMALS TO [<nDecimal>]

Arguments

<nDecimal> Number of decimals places

Description

This command establishes the number of decimal places that Harbour will display in mathematical calculations, functions, memory variables, and fields. Issuing no parameter with this command will the default number of decimals to 0. For decimals to be seen, the SET FIXED ON command must be activated.

Examples

      SET FIXED ON
      ? 25141251 / 362
      SET DECIMALS TO 10
      ? 214514.214 / 6325

Compliance

Clipper

Seealso

SET FIXED, Set()

2 responses to “SET DECIMALS

  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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.