C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
C and C++ Extensions
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
2-21
Data Types
decimal
The data type decimal is an HP extension. decimal is applicable only for the native
C and TNS C languages, which use the pragma SQL.
decimal specifies the predefined decimal type, which is used to access data in an
SQL database. If you use decimal, you must specify the SQL pragma. If you want
functions to manipulate decimal variables, you must specify the SQL pragma and
include the header sqlh. For more details regarding the use of the data type
decimal, see the NonStop SQL/MP Programming Manual for C.
long long
The data type long long is a 64-bit integer. This HP extension is applicable for the
native and TNS C and C++ languages.
For TNS C++, type matching occurs for initialization, expressions, and argument lists.
Variables of type long long are allowed in all contexts that TNS C allows them.
Constants of type long long are recognized when the decimal number is followed by
the modifier LL or ll. Variables and constants of type long long are allowed in
classes and templates.
unsigned long long
The data type unsigned long long is an unsigned 64-bit integer. This HP
extension is applicable for both the TNS/R and TNS/E native C and C++ languages.
signed char
The data type signed char is an HP extension to Cfront, the TNS C++ preprocessor.
The data type signed char can be used to distinguish a specific instance of an
overloaded member function.
float float
double double
long double long double
* The bool type became available at the D45 release with native C++ using the VERSION2 directive.
Table 2-4. Predefined Data Types (page 2 of 2)
Long forms Abbreviated forms