Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] printf truncates large values
On a 64-bit x86_64 machine, with zsh 5.4.2:
cventin% printf "%x\n" 10865468317030705979
zsh: number truncated after 19 digits: 10865468317030705979
f1430962f7cd785
There's no reason to truncate the value on a 64-bit machine!
The printf from GNU coreutils is correct:
cventin% /usr/bin/printf "%x\n" 10865468317030705979
96c9e5dddae06b3b
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author