Anonymous user
Variable-length quantity: Difference between revisions
m
added whitespace before the TOC, added a ;Task (bold) header.
(Refactored code) |
m (added whitespace before the TOC, added a ;Task (bold) header.) |
||
Line 3:
Implement some operations on [[wp:Variable-length quantity|variable-length quantities]], at least including conversions from a normal number in the language to the binary representation of the variable-length quantity for that number, and ''vice versa''. Any variants are acceptable.
'''Task :''' With above operations, ▼
;Task:
*convert these two numbers 0x200000 (2097152 in decimal) and 0x1fffff (2097151 in decimal) into sequences of octets (an eight-bit byte);
*display these sequences of octets;
*convert these sequences of octets back to numbers, and check that they are equal to original numbers.
<br><br>
=={{header|Ada}}==
|