Heimdall Ksu wrote:Hello all ,
I have two arbitrary length binary numbers.
ex : 100011111 & 1111001110001
Is it possible to compare them using only there 0s & 1s representations.
How are you storing these numbers? As Strings?
Heimdall Ksu wrote:i.e I don't want to convert them to base 10 & compare them...
In
Java, all numbers are in base 10. Yes, you can use octal or hexadecimal literals, but their value will still be stored as a decimal (base 10).