[comp.lang.pascal] Base conversion

ken@aiai.ed.ac.uk (Ken Johnson) (10/18/89)

>	Write a routine that will convert from one base to another.
>       function convert(base : integer; input_num : string) : string;

Can anyone extend this to cover multi-base arithmetic with fractions?
For example, 1.4(8) should convert to 1.1(2) and
10.875(10) to A.E(16)


-- 
Ken Johnson, AI Applications Institute, 80 South Bridge, Edinburgh EH1 1HN
E-mail ken@aiai.ed.ac.uk, phone 031-225 4464 extension 212
`I have read your article, Mr Johnson, and I am no wiser now than when I
started'.  -- `Possibly not, sir, but far better informed.'