NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
D-21
Considerations—DECIMAL_POINT
Considerations—DECIMAL_POINT
DECIMAL_POINT character must be a single byte
The DECIMAL_POINT character must be a single-byte period or comma,
regardless of the character set used.
DECIMAL_POINT does not change numeric literal or mask cescriptor character
The DECIMAL_POINT option does not change the decimal point character used in
numeric literals or in mask display descriptors. That character (which is input to
SQLCI) is always a period. The DECIMAL_POINT option does change the decimal
point character that SQLCI prints in reports when you apply the mask to a value.
Examples—DECIMAL_POINT
The following example prints a price in European format, using an F9.2 display
descriptor and a comma as the decimal character:
S> SET STYLE DECIMAL_POINT ",";
S> DETAIL PRICE;
S> LIST NEXT 1;
PRICE
------------
1300,95
The following example uses a period in a mask format to print a price, again using a
comma as the decimal character:
S> SET STYLE DECIMAL_POINT ",";
S> DETAIL PRICE AS M"9999.99";
S> LIST NEXT 1;
PRICE
------------
1300,95