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