Because the former is a numeric literal where the 0x prefix means something; the later is a string treated as a number which presumes base10 (which means it gives up when it sees a non-digit "x" and is numerically 0). You need to use oct to get the string value treated like it would be as a numeric literal.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Hex, Localtime and strings
by Fletch
in thread Hex, Localtime and strings
by theneil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |