How are signed 32-bit integers represented in DI messages?
kirchh
Posts: 18
The BumpSVPercent DI command takes a scaled percentage. How are negative numbers represented? Is the high-order bit set? Does the AMX programming environment use the same representation as the Blu DI protocol, allowing straight math on an AMX 32-bit integer to produce the needed representation?
Thanks --
--Daniel
Thanks --
--Daniel
0
This discussion has been closed.
Comments
-2 = 0xFF FF FF FE
-3 = 0xFF FF FF FD
etc.
Dan
--Daniel
Dan
There's no explicit statement of the representation of negative numbers on that page of the manual, though I suppose it could be derived by performing a calculation on an example. I hope 'nitrogen' doesn't feel s/he was answering an unnecessary inquiry with his/her clear, direct answer.
Quite true. That's why of the hundreds of questions I've had over the last two weeks while developing an LA design and coding a complete AMX control system, I've only posted a handful to the forum.
--Daniel