[PATCH v2 11/14] lib: Allow using 0x when a decimal value is requested