From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Wed, 10 Feb 2016 14:02:44 +1300 Message-ID: From: Winston Kodogo To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e0141a938e09207052b5ffdf8 Subject: [9fans] BCD encoding in Plan9 - don't shoot me Topicbox-Message-UUID: 83b96224-ead9-11e9-9d60-3106f5b1d025 --089e0141a938e09207052b5ffdf8 Content-Type: text/plain; charset=UTF-8 So, I'm working with ISO8583, a "standard" (HAHAHAH!!!!!) The "standard" allows but does not require, BCD encoding of numerical data. Which may or may not have a BCD-encoded numerical length prefix. The prefix may or may not be 1 to 3 bytes in length. Or the data might come with no prefix, and be right justified in a fixed width field of known size. Or left justified. So hard to tell these days. But I ramble. So I was just wanting to ask if anyone here has any simple BCD conversion routines. But, actually, ignore the subject line. Just shoot me. --089e0141a938e09207052b5ffdf8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

So, I'm working with=C2= =A0ISO8583, =C2=A0a "standard" (HAHAHAH!!!!!) =C2=A0The "sta= ndard" allows =C2=A0but does not require, BCD encoding of numerical da= ta. Which may or may not have a BCD-encoded numerical length prefix. The pr= efix may or may not be 1 to 3 bytes in length. Or the data might come with = no prefix, and be right justified in a fixed width field of known size. Or = left justified. So hard to tell these days.

But I ramble. So I was just wanting t= o ask if anyone here has any simple BCD conversion routines.

But, actually, ignor= e the subject line. Just shoot me.
--089e0141a938e09207052b5ffdf8--