Repeating Decimals

All rationals have repeating decimal expansions. Operations to access the individual digits of a decimal expansion can be obtained by converting the value to RadixExpansion(10). The operation decimal is used to create this expansion of type DecimalExpansion. Arithmetic is exact. The period of the expansion can be short or long... or very long These numbers are bona fide algebraic objects. More examples of expansions are available in BinaryExpansion, HexadecimalExpansion, and RadixExpansion. Issue the system command to display the full list of operations defined by RadixExpansion.