Re: [9fans] BCD encoding in Plan9 - don't shoot me

2016-02-12 Thread Skip Tavakkolian
if i understand it correctly (reading wikipedia's description) the field is either packed BCD (each nibble is the binary representation of the digit) or ebcdic representation of the digits (see /sys/src/cmd/dd.c:618) > So, I'm working with ISO8583, a "standard" (HAHAHAH!) The "standard" > al

Re: [9fans] BCD encoding in Plan9 - don't shoot me

2016-02-12 Thread erik quanstrom
> 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 prefi