Numerical Base Convertion

Attention: open in a new window. PDF 

User Rating: / 2

This generation rule convert a numerical value provided by a source from one base to another. This can be used to convert base 10 integer into base 16 hexadecimal integer.

The basic idea is that any number can be writen using a subset of unique digits. For example, in a base 10 notation the alphabet of digit is "0", "1" .. "9". Then, in a base 16 alphabet, a same number can be writen with less positions taken from "0" ... "9" "A" ... "F".

You can check the Wikipedia page about Positional Notation for a little bit of theory about this.


The source alphabet gives the unique digits of the source values, from the lower value to the greater value. 

The target alphabet gives the uniques digits of the converted values, againfrom the lower value to the greater value.

Add comment

Security code