On Mon, 30 Oct 2006 18:02:16 +0100
Thijs Kinkhorst <[EMAIL PROTECTED]> wrote:

> >     % i 1abc234
> >     1 0x1 01 0b1
> 
> While I was looking in to this, I discovered that the manpage
> documents this behaviour:
> 
> "Otherwise, if an argument begins with a digit, it is assumed to be a
> decimal number."

The sentence is vague; "1abc234" is not a decimal number, and it says
nothing about converting strings to decimal by suffix truncation.

Here's another oddity:

        % i 0b1111
        15 0xF 017 0b1111
        % i 0b1111z
        30 0x1E 036 0b11110
        % i 0b1111zz
        60 0x3C 074 0b111100 '<'
        % i 0b111111111zz
        2044 0x7FC 03774 0b11111111100

That's not truncation.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to