Purpose
Test Data Class
Reports
if a value is a zero, subnormal, normal, infinity, quiet NaN or signaling
NaN, and if the value is positive or negative.
Prototype
long __d64_test_data_class
(_Decimal64, unsigned long mask);
long __d128_test_data_class
(_Decimal128, unsigned long mask);
Parameters
- mask
- One of the values or macros defined in Table 1 or several ORed together. The parameter must be a compile time
constant expression.
Return value
One of the values listed in Table 3.
Usage
You can use an appropriate mask to
check combinations of values at the same time. Use the masks listed
in Table 1 to
check input values. Use the masks listed in Table 4 to
check result values.