From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17929 invoked by alias); 30 Jan 2018 16:47:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42331 Received: (qmail 19529 invoked by uid 1010); 30 Jan 2018 16:47:51 -0000 X-Qmail-Scanner-Diagnostics: from cventin.lip.ens-lyon.fr by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(140.77.13.17):SA:0(-1.9/5.0):. Processed in 10.984998 secs); 30 Jan 2018 16:47:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Date: Tue, 30 Jan 2018 17:40:21 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: [BUG] printf truncates large values Message-ID: <20180130164021.GA521@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.9.3+77 (eca744f5) vl-105418 (2018-01-21) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)