Hexedecimal Why?
Re: Hexedecimal Why?
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
Last edited by qw on Wed Jun 05, 2013 4:36 am, edited 1 time in total.
Re: Hexedecimal Why?
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.
Base-0 would not be particularly useful.
Re: Hexedecimal Why?
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?
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
http://www.princeton.edu/~achaney/tmve/ ... ystem.html
Re: Hexedecimal Why?
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?
I disagree.Hobbes wrote:programming languages usually don't support tallying. After all, we don't tally in base-10 either.
- Owen
- Member
- Posts: 1700
- Joined: Fri Jun 13, 2008 3:21 pm
- Location: Cambridge, United Kingdom
- Contact:
Re: Hexedecimal Why?
Negative bases also exist, as do complex bases
Re: Hexedecimal Why?
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.
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.
Last edited by qw on Mon Jun 10, 2013 5:06 am, edited 1 time in total.
Re: Hexedecimal Why?
I vote for e (natural logarithm, 2.71828) as the natural selection of a base.
- Kazinsal
- Member
- Posts: 559
- Joined: Wed Jul 13, 2011 7:38 pm
- Libera.chat IRC: Kazinsal
- Location: Vancouver
- Contact:
Re: Hexedecimal Why?
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...