number formats



On 5/7/07, sen1 at math.msu.edu <sen1 at math.msu.edu> wrote:
>
>   How does one get different formats for integers in maxima?
>
> For instance, to go from integers (standard format) to hexadecimal and
> vice versa.
>

describe(base) -- The default output base is decimal.  It can be changed
using the obase option variable, e.g.:

(%i1) 5!;
(%o1)                      120
(%i2) obase:2$
(%i3) 5!;
(%o3)                    1111000
(%i4) obase:16$
(%i5) 5!;
(%o5)                      5A

There is also an "ibase" variable documented, but I can't get it to work in
5.11.  With ibase=2^4, None of A , 0A , A. have the value 10.

              -s