OP updated. New version released
Originally Posted by ChitownWingMan
This is a nice application. I would like to make the following suggestions:
Allow the user to set the word size (in bits).
Allow for word sizes greater than 60 bits (64 bits would be nice, 128 bits would be fantastic).
Allow for signed or unsigned (this affects the decimal conversion).
Add basic programmers calculator functions (add, subtract, multiply, divide, shift left/right, rotate left/right, And, Or, Xor, 1's compliment, 2's compliment).
A convert to floating point would be a nice feature. This would take the decimal number and convert it to the binary, octal and hex floating point representation. This would require the entry of non-integer values. IMHO only IEEE format floating needs to be supported.
Honestly, I only made this for my convenience. I wish to dedicate most of my time towards making games, but I made this for me and thought I could benefit others.
Regarding your feature requests,
The first one seems pretty feasible. Not really sure what you specifically want from this. Do you want it so the word (in the binary field) is capped at x (where x is the input word length). Or do you just want it to look nice and throw a space after every x bits?
Regarding > 60 bits and signed/unsigned - Java's largest primitive data type is "long" which is max 9,223,372,036,854,775,807. Theoretically, I could use the other half of the spectrum (the negative values) and offset it to cover that much more, but I don't think Long.toString(someLong, baseX) would play nice with that. I'd basically need to do it completely differently to achieve this.
The basic functions also seem feasible but, to me, don't belong in this app. I think a dedicated Programmer's tools app would be more appropriate as the sole purpose of this is to display different representations of a given number.
Lastly, converting to floating point is the most feasible of your options. My girlfriend is about to leave the state for vet school so I won't be doing too much programming as I'll be spending time with her...but if any of the requested features make it in this app, it'll be the floating point conversion...though, as you mention, it's going to need decimal values, I'd throw it on a different tab or something.
Thanks a lot for your feedback.