Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: ben_g on October 21, 2011, 04:17:35 pm

Title: Base Converter (also works for signed and fixed-point numbers)
Post by: ben_g on October 21, 2011, 04:17:35 pm
Everybody who programs z80 or an other low-level programming language has to do a lot of converting between decimal, binary and hexadecimal numbers. This can easily be done by using the windows calculator with normal integers, but when you use signed integers or fixed-point numbers, it gets harder, and takes more time to calculate them. Because I have to do that a lot, I decided to make a tool which can convert all kinds of binary, hexadecimal and decimal numbers to each other, including fixed-point and signed numbers, and I thought this might be useful to other people too, so I decided to distribute it.

It's easy to use it: You just select the base of the input and output, you check if the numbers are signed, select the form (integer or fixed-point) and click the convert key.

For now, the number of bits is ignored, so you may have to use only the last few characters ore add prefix zero's, but it can

And here's the link to the program itself:
http://dl.dropbox.com/u/11215358/base%20converter.jar
It's a java program and uses no libraries, so it should work on all operating systems, when java is installed.

Do you find bugs or do you have problems with this program? please post. If you find this program completely useless and you think I shouldn't have distributed it, please post too.