DecNumZPRep class | QSYS API Reference Guide
Estimated reading time: 3 minutes
DecNumZPRep provides methods for interpreting the Acceler8DB “ZPREP”
code for packed and zoned decimal data representation, thereby
describing the format of these data representations.
Namespace: ASNA.DataGate.Common
Assembly: ASNA.QSys.DataGate.Client.dll
Inheritance: Object
Constructors
DecNumZPRep(Int32)
Initializes a new instance of the class.
Parameters
Type |
Parameter name |
Description |
Int32 |
format |
The format of the decimal number. |
Properties
Type |
Name |
Description |
DecNumZPRep |
Default |
The default zoned/packed decimal representation object forDG/Windows. |
Int32 |
NegPacked |
Returns the 8-bit code for a packed decimal negative number. Thecode is contained in the lower nibble, and the upper nibble iszero. |
Int32 |
NegZone |
Returns the 8-bit code for a zoned decimal negative number. Thecode is contained in the upper nibble, and the lower nibble iszero. |
Int32 |
PosPacked |
Returns the 8-bit code for a packed decimal positive number. Thecode is contained in the lower nibble, and the upper nibble iszero. |
Int32 |
PosZone |
Returns the 8-bit code for a zoned decimal positive number. Thecode is contained in the upper nibble, and the lower nibble iszero. |
Int32 |
Value |
Gets the format of the decimal number. |
Methods
Signature |
Description |
IsNegativePacked(Byte) |
Returns true if the specified byte represents a negative packeddecimal byte. |
IsNegativeZone(Byte) |
Returns true if the specified byte represents a negative zoneddecimal byte. |
IsPositivePacked(Byte) |
Returns true if the specified byte represents a positive packeddecimal byte. |
IsPositiveZone(Byte) |
Returns true if the specified byte represents a positive zoneddecimal byte. |
bool IsNegativePacked(byte b)
Returns true if the specified byte represents a negative packeddecimal byte.
bool IsNegativePacked(byte b)
Parameters
Type |
Parameter name |
Description |
Byte |
b |
The byte to check. |
Returns
bool IsNegativeZone(byte b)
Returns true if the specified byte represents a negative zoneddecimal byte.
bool IsNegativeZone(byte b)
Parameters
Type |
Parameter name |
Description |
Byte |
b |
The byte to check. |
Returns
bool IsPositivePacked(byte b)
Returns true if the specified byte represents a positive packeddecimal byte.
bool IsPositivePacked(byte b)
Parameters
Type |
Parameter name |
Description |
Byte |
b |
The byte to check. |
Returns
bool IsPositiveZone(byte b)
Returns true if the specified byte represents a positive zoneddecimal byte.
bool IsPositiveZone(byte b)
Parameters
Type |
Parameter name |
Description |
Byte |
b |
The byte to check. |
Returns