Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: printf bug
On Apr 12, 1:40am, Yuya Amemiya wrote:
}
} I think printf built-in command has a bug.
}
} % printf "%u\n" 0xffffffffffffffff
} zsh: number truncated after 15 digits: ffffffffffffffff
} 1152921504606846975
Zsh doesn't have an internal string-to-unsigned operation, so unsigned
is limited to the range of positive signed.
You'll note that you also can't declare zsh integer-typed variables to
be unsigned.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author