Chapter Contents

Previous

Next
COMMAXw.d

COMMAXw.d



Writes numeric values with periods and commas

Category: Numeric
Alignment: right


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

COMMAXw.d

Syntax Description

w
specifies the width of the output field.
Default: 6
Range: 2-32
Tip: Make w wide enough to write the numeric values, the commas, and the optional decimal point.

d
optionally specifies the number of digits to the right of the decimal point in the numeric value.
Range: 0-31
Requirement: must be less than w


Details

The COMMAXw.d format writes numeric values with periods that separate every three digits and with a comma that separates the decimal fraction.


Comparisons

The COMMAw.d format is similar to the COMMAXw.d format, but the COMMAXw.d format reverses the roles of the decimal point and the comma. This convention is common in European countries.


Examples

put @10 sales commax10.2;

Values Results

----+----1----+----2
23451.23
          23.451,23
123451.234
         123.451,23


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.