Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Variable-length-quantity/00-TASK.txt
Normal file
10
Task/Variable-length-quantity/00-TASK.txt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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,
|
||||
*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>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue