CONVERTER

by Owen Stott



[The Decimal to Binary & Hex routines from 400-570 could be simplified]

[& improved. Eg. there is unnecessary jumping around with GO TOs; plus]

[Dec-Hex only prints the last two digits, so decimals >255 don't print]

[as hex correctly; plus leading 0s could be omitted - but I've just   ]

[left it as it was printed in the magazine.                       JimG]



Numerical bases, eh? They're a pesky bunch and no mistake. You've got

denary, base ten, your average everyday numbers; you've got hexadecimal,

base sixteen, a mixture of numbers and characters; and you've got the

granddaddy of them all, binary, base two, which is, erm, a collection

of ones and zeroes. It's the simplest number system there is, you know

(just a mite tricky to understand, that's all). Anyway, that's where

this handy proglet comes in. Owen's routines convert numbers from any

of the three bases into, well, any other of the three bases. [Not so -

they only convert between decimal and the other two. JimG] Now you too

can make sense of all those hex listings in Pitstop, or find out the

binary for forty-seven, or something.

