Previous Page | Next Page

Formats

COMMAw.d Format



Writes numeric values with a comma that separates every three digits and a period that separates the decimal fraction.
Category: Numeric
Alignment: right

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

COMMAw.d

Syntax Description

w

specifies the width of the output field.

Default: 6
Range: 1-32
Tip: Make w wide enough to write the numeric values, the commas, and the optional decimal point.
d

specifies the number of digits to the right of the decimal point in the numeric value. This argument is optional.

Range: 0-31
Requirement: must be less than w

Details

The COMMAw.d format writes numeric values with a comma that separates every three digits and a period that separates the decimal fraction.


Comparisons


Examples

put @10 sales comma10.2;

Value of sales Results

----+----1----+----2
23451.23
          23,451.23
123451.234
         123,451.23


See Also

Formats:

COMMAXw.d Format

DOLLARw.d Format

Previous Page | Next Page | Top of Page