Appendix C: Alternative number bases.

SIMULA allows integers to be specified to number bases other than 10. This applies to integer parts, fractional parts and exponent values, as well as all uses of integers (see appendix B).

The format of such an integer, which may be preceded where appropriate by a sign (not in fractional parts), is:

      <radix>R<appropriate_digits>
Radix is the number specifying the base to be used and must be one of 2, 4, 8 or 16.

The digits which may be used will depend on the choice of base, as follows:

   2 ->   0,1
   4 ->   0,1,2,3
   8 ->   0,1,2,3,4,5,6,7
  16 ->   0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Examples of this form for simple integers are:
   2R1010
   16RFFFE
   8R76501