Refactored number literal to a single method. Note that large hex is currently not supported due to a decimal conversion requirement. This can be done by big integer maniuplating but is not on the highest priority...