Chapter Contents

Previous

Next
PERCENTw.d

PERCENTw.d


Writes numeric values as percentages

Category: Numeric
Alignment: right


Syntax
Syntax Description
Details
Examples

Syntax

PERCENTw.d

Syntax Description

w
specifies the width of the output field.
Default: 6
Range: 4-32

d
optionally specifies the number of digits to the right of the decimal point in the numeric value.
Range: 0-2


Details

The PERCENTw.d format multiplies values by 100, formats them the same as the BESTw.d format, and adds a percent sign (%) to the end of the formatted value, while it encloses negative values in parentheses. The PERCENTw.d format allows room for a percent sign and parentheses, even if the value is not negative.


Examples


put @10 gain percent10.;

Values Results


----+----1----+----2

0.1

               10%

1.2

              120%

-0.05

         (      5%)


Chapter Contents

Previous

Next

Top of Page

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