Imagine you have to create unique sequence numbers but length should be less than 8 digits/characters, in such case use Base 64 number system use the symbols 0-9, a-z, A-Z, -, _ (hyphen, underscore), Z represents 61, and - 62, and _ 63.
You can represent
64 ^1 = 6464^2 = 4096
64^3 = 262,144
...
..
64^8 = 281,474,976,710,656 (its 281 trillion, 474 billion, 976 million .... )
This technique used in shortened URL's and other places where we need to represent a large number with less digits/characters.
No comments:
Post a Comment