How to resolve the algorithm Variable-length quantity step by step in the TXR programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Variable-length quantity step by step in the TXR programming language

Table of Contents

Problem Statement

Implement some operations on 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.

With above operations,

Let's start with the solution: