truncating numeric value to 8-bits (0-255). Added support for hexadecimal notation (prefix with 0x) while I was at it.