![]() |
Copyright © TIBCO Software Inc. All rights reserved |
• Binary (COMP and COMP-4)
• Packed Decimal (COMP-3).The precision of a field is its length and number of decimals, and is specified using the “precision” tag. The format is precision="n,p" where n is the number of digits for the number (including decimals) and p is the number of decimals.
• Zoned Type: Zoned numbers occupy 1 byte of storage for each numeric digit specified.
• Binary Type: Binary numbers occupy 2, 4, or 8 bytes of storage, depending on the specified precision: 2 bytes: n from 1 to 4; 4 bytes: n from 5 to 9; and 8 bytes: n from 10 to 18.
• Packed Type: Packed numbers occupy from 1 to 15 bytes of storage. The number of bytes is determined from the formula n/2 + 1. For example, a field with precision="7,2" would occupy 4 bytes of storage.
![]() |
Copyright © TIBCO Software Inc. All rights reserved |