Chapter Contents

Previous

Next
YENw.d

YENw.d



Writes numeric values with yen signs, commas, and decimal points

Category: Numeric
Default width: right


Syntax
Syntax Description
Details
Examples

Syntax

YENw.d

Syntax Description

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

d
optionally specifies the number of digits to the right of the decimal point in the numeric value.
Restriction: must be either 0 or 2
Tip: If d is 2, YENw.d writes a decimal point and two decimal digits. If d is 0, YENw.d does not write a decimal point or decimal digits.


Details

The YENw.d format writes numeric values with a leading yen sign and with a comma that separates every three digits of each value.

The hexadecimal representation of the code for the yen sign character is 5B on EBCDIC systems and 5C on ASCII systems. The monetary character these codes represent may be different in other countries.


Examples

put cost yen10.2;

Value Results

----+----1
1254.71
¥1,254.71


Chapter Contents

Previous

Next

Top of Page

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