matthewstorey.co.uk
In this section Binary Coded Decimal | Binary | Character Numeric Edited | Packed Decimal | Text | Zoned Decimal

Character Numeric Edited

About

Stores numbers in a textual format, (so it depend on a codepage) e.g. '-+1234567890'

Signed fields have a sign character '+' or '-', decimal places have a '.' before them and other symbols (like currency) can be used as well.

Limits

Hard to process, as it can contain anything. Nearest type is Zoned Decimal.

Other

Also known as 'CNE'.

Use

Used on every platform.

ASCII codepage examples

Unsigned

     12345     is encoded in hex as    33333
                                       12345

     12345.67  is encoded in hex as    33333233
                                       12345E67
      

Signed

     +12345    is encoded in hex as    233333
                                       B12345

     -12345.67 is encoded in hex as    233333233
                                       D12345E67
      

Other

     $12345    is encoded in hex as    233333
                                       412345

     $12345.67 is encoded in hex as    233333233
                                       412345E67
      

Back to top

EBCDIC codepage examples

Unsigned

     12345     is encoded in hex as    FFFFF
                                       12345

     12345.67  is encoded in hex as    FFFFF4FF
                                       12345B67
      

Signed

     +12345    is encoded in hex as    4FFFFF
                                       E12345

     -12345.67 is encoded in hex as    6FFFFF4FF
                                       012345B67
      

Other

     $12345    is encoded in hex as    5FFFFF
                                       B12345

     $12345.67 is encoded in hex as    5FFFFF4FF
                                       B12345B67
      

Back to top