|The stupid question is the question not asked|
hexadecimal divisionby holandes777 (Beadle)
|on Dec 15, 2017 at 23:16 UTC||Need Help??|
holandes777 has asked for the wisdom of the Perl Monks concerning the following question:
Lift the veil of ignorance from my eyes
I am trying to follow am LRC computation (Longitudinal CRC computation) and have hit a bump
What concept did I miss? Thank you.
It has been pointed out I was noyt clear as to what I needed, and it is true! So allow me to clarify:
The result of the xor-ing is correct according to the API doc: they expect X'05' and if you run the code we have a display of 05 which is 0x05. It is the next step, where we divide this 0x05 result by X'10' (0x10). The code says:<\p> $result2 = int($dividend/$divisor);
what I expect is 5/16 converted to an int which is the NUL characted (0x00) which the API show as X'00'. The result I AM getting is 30 (0x30 or the ascii charated zero). This is where I need your help, on the last statement.