little library for convert hec number to dec number