Tuesday, March 20, 2012

Advantages of storing datas in hexadecimal or octal formate

Is there any advantages that storing data in hexadecimal octal formate in data base?
By Manikandan.

Quote:

Originally Posted by icemani

Is there any advantages that storing data in hexadecimal octal formate in data base?
By Manikandan.


There can be but -- to my practice -- it is very rare.

One might be if you need to store numbers that are out of bounds of built-in data types. If -- in addition -- you have to be space conscious (but don't care much about computing) hex format is an option.

Another one if hex representation has some meaning to it, e.g. color codes in HTML tags.

Yet another one if you store some data encoded, and the encoding algorithm produces octal or hex output.

And there may be others...

No comments:

Post a Comment