Page 2 of 2
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 4:20 am
by qw
You could use a base-1 numeral system. It's able to represent one value only: zero. A base-0 numeral system is left as an exercise to the reader
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 4:28 am
by iansjack
Actually, a base-1 number system can represent any positive number. It cannot represent zero (other than by the lack of any mark, which is a bit ambiguous). It's one of the oldest number systems known.
Base-0 would not be particularly useful.
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 4:32 am
by qw
A base-k numeral system has digits for 0 .. k-1. As a consequence, a base-1 numeral system only has the digit 0 and can only represent the value zero.
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 4:41 am
by iansjack
I have learnt better than to argue with people's mathematical misconceptions on this forum. Too many self-taught "mathematicians".
http://www.princeton.edu/~achaney/tmve/ ... ystem.html
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 5:01 am
by qw
You probably missed the ":D" at the end of my post. I was pushing the discussion to the absurd. I'm aware of the unary numeral system, but programming languages usually don't support tallying. After all, we don't tally in base-10 either.
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 5:09 am
by iansjack
Hobbes wrote:programming languages usually don't support tallying. After all, we don't tally in base-10 either.
I disagree.
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 5:10 am
by qw
Yes, I noticed.
Re: Hexedecimal Why?
Posted: Wed Jun 05, 2013 5:38 pm
by Owen
Re: Hexedecimal Why?
Posted: Thu Jun 06, 2013 3:25 am
by qw
Hey, that's cool.
I recall there is some binary representation where every odd bit is positive and every even bit is negative:
0000: 0
0001: 1
0010: -2
0011: -1
0100: 4
0101: 5
0110: 2
0111: 3
1000: -8
1001: -7
1010: -10
1011: -9
1100: -4
1101: -3
1110: -6
1111: -5
Though I don't really see the benefits over two-complement.
EDIT: I see I got my calculations wrong. Never mind, the idea is clear.
Re: Hexedecimal Why?
Posted: Thu Jun 06, 2013 3:41 am
by rdos
I vote for e (natural logarithm, 2.71828) as the natural selection of a base.
Re: Hexedecimal Why?
Posted: Sun Jun 09, 2013 12:53 am
by Kazinsal
Hexadecimal can represent a byte in two clear digits, and each byte in any size of 8-bit-byte-based word can be recognized clearly at a glance with hexadecimal. You can't do that with decimal, octal, ternary...