Representation is context
A hexadecimal or binary string does not automatically tell you whether a value is signed, how wide it is, whether bytes are little endian, or whether the bits represent an integer or floating-point value.
Convert base-8 integers to base 10 and validate every octal digit.
Expand every octal digit as digit × 8^position, sum the exact BigInt contributions, and decode Unix-style permission digits when the input has three or four octal digits.
| Digit | Power | Contribution | Running total |
|---|
A hexadecimal or binary string does not automatically tell you whether a value is signed, how wide it is, whether bytes are little endian, or whether the bits represent an integer or floating-point value.