Converts a whole number in the 8-bit signed range to byte
All 5 scenarios hold
Decimal, hex, and octal text all convert, to the primitive and its wrapper alike.
expected outcome
broken scenario
| Scenario | byte | Byte | Converted value? |
|---|---|---|---|
| Decimal digits | 15 | 15 | 15 |
| Hex literal | 0xF | 0xF | 15 |
| Octal literal | 017 | 017 | 15 |
| Most negative value | -128 | -128 | -128 |
| Largest value | 127 | 127 | 127 |