Previous Page | Next Page

Formats for NLS

NLPCTIw.d Format



Writes percentage data of the international expression in the specified locale.
Category: Numeric
Alignment: left

Syntax
Syntax Description
Comparisons
Examples
See Also

Syntax

NLPCTIw.d


Syntax Description

w

specifies the width of the output field.

Default: 6
Range: 4-32
d

specifies to divide the number by 10d. If the data contains decimal separators, the d value is ignored.

Default: 0
Range: 0-31

Comparisons

The NLPCTIw.d format writes percentage data of the international expression in the specified locale. The NLPCTw.d format writes the percentage value with locale-dependent thousand and decimal separators. The NLPCTIw.d format writes the percentage value with a comma (,) as thousand separator and a period (.) as a decimal separator.

The NLPCTw.d format is similar to the PERCENTw.d format except the NLPCTw.d format is locale-specific.


Examples

In the following example, the LOCALE= system option is set to English_UnitedStates.

x=put(-12.3456789,nlpcti32.2);
y=put(-12.3456789,percent32.2);

Statements Results

----+--------1
put x=;

put y=;
-1,234.57%

(                      1234.57)


See Also

Formats:

NLPCTw.d Format

Informats:

NLPCTw.d Informat

NLPCTIw.d Informat

Previous Page | Next Page | Top of Page