Hi Folks,
I found a web site that says this about zone decimal numbers:
zoned decimal specifies a method of encoding decimal numbers in which each
digit requires one byte of storage. The last byte contains the number's sign as
well as the last digit. Zoned decimal data produces a printable representation.
Suppose that I have a text data format and an instance contains the number
nine. Suppose the encoding property specifies the value ASCII. If I view the
instance in a hex editor, I see these hex digits:
39
If I view the instance in a text editor, I see this:
9
Now, suppose the data format uses "zoned" numbers. From the above definition of
zoned decimal, I might imagine that for an instance having the value nine a hex
editor would show this:
09
If I viewed that in a text editor, it would show a tab (in ASCII hex 9 is the
tab symbol). A tab symbol is a very odd way to represent the number 9.
Zone numbers make no sense to me. Help!
/Roger
-----Original Message-----
From: Costello, Roger L. <[email protected]>
Sent: Monday, April 20, 2020 10:39 AM
To: [email protected]
Subject: What is a "zoned" textNumberRep?
Hi Folks,
textNumberRep :: standard | zoned
"standard" means the number is represented by a sequence of character digits.
Right?
"zoned" means ??? Can you provide an example of a zoned number? Can you point
me to a web page that explains zoned numbers?
/Roger