Converts a whole number in the 64-bit signed range to long
All 5 scenarios hold
expected outcome
broken scenario
| Scenario | long | Long | Converted value? |
|---|---|---|---|
| Decimal digits | 15 | 15 | 15 |
| Hex literal | 0xF | 0xF | 15 |
| Octal literal | 017 | 017 | 15 |
| Most negative value | -9223372036854775808 | -9223372036854775808 | -9223372036854775808 |
| Largest value | 9223372036854775807 | 9223372036854775807 | 9223372036854775807 |