From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23069 invoked by alias); 15 May 2015 01:27:25 -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: X-Seq: 35149 Received: (qmail 17621 invoked from network); 15 May 2015 01:27:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=NEkSGc2LjtGMnFigtDAoUUfH/4/RdSe6q361kcMsndA=; b=FF8177n80uHBfszaZHMhnkO08dJYrK872xzNf8voCgmcWOsyFfU5MKZ+l+CjbOqF+K KQGD69XzEqvEW7zhNPnQfvWwViw99enk7Jed7ElYzkxFDMCLKcmg3ho/R5EsCwUsUw+6 A5GC6BR1Ta5P4shqkh6TZEtV4YttBKK95d6KMmA8pEMGB5hREK37zI4dt5E+Db49KdQl swy65ptWCmZAqKkV5bGA54uyO6mIx2fTblUHanBrtLEKJTZXSaeuO5txjTdnE1BpIhyf SGUzRq10Np+gONf1fzRe22XNhCH0sDIflpMCV15iHHRiJjNyGoZmnBHZh4EvK3AZzKUf ppng== X-Gm-Message-State: ALoCoQmMrt9II+hppMco2/pCg6BLLpNNlrSdPMJ/LebDDsiauZhVkF869DAAS/klTSjepL68oua8 X-Received: by 10.60.142.200 with SMTP id ry8mr6145343oeb.72.1431653243173; Thu, 14 May 2015 18:27:23 -0700 (PDT) From: Bart Schaefer Message-Id: <150514182719.ZM31111@torch.brasslantern.com> Date: Thu, 14 May 2015 18:27:19 -0700 In-Reply-To: <27767.1431650762@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "Re: why do ceil/floor give the decimal dot?" (May 15, 2:46am) References: <87oalodmns.fsf@debian.uxu> <150513195617.ZM29493@torch.brasslantern.com> <87d223et0a.fsf@debian.uxu> <20150514105349.52338d94@pwslap01u.europe.root.pri> <87siay262s.fsf@debian.uxu> <14C892AF-61F9-4FEE-832C-0AD196669182@larryv.me> <27767.1431650762@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: why do ceil/floor give the decimal dot? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 15, 2:46am, Oliver Kiddle wrote: } } Note that if you're using zsh's builtin printf, parameters corresponding } to format specifiers such as %d are automatically evaluated in math } context. So you can just do: } printf '%d\n' 1e20 Well, except that 1e20 is too large to fit in an integer. Did you mean printf '%g\n" 1e20 ??