From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23299 invoked by alias); 14 May 2015 00:52: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: 35116 Received: (qmail 17775 invoked from network); 14 May 2015 00:52:20 -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, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: zsh-workers@zsh.org To: zsh-workers@zsh.org From: Emanuel Berg Subject: why do ceil/floor give the decimal dot? Date: Thu, 14 May 2015 02:32:07 +0200 Message-ID: <87oalodmns.fsf@debian.uxu> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-66.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:4uenSG3KwNIwGlzKb8ihC5W72wE= >>From #zsh (incal == yours truly): why do ceil/floor give the decimal dot? echo $(( floor(5) )) -> 5. Isn't that the whole "point" that you want an integer? I know I can get it with int but I thought I'd learn if there is a reason incal, I suspect that's an oversight. incal, it just uses the C floor() function, danielsh: OK, that explains it but it is still an open question if it makes sense. Is there an interactive way to report "bugs" or suspected bugs in zsh like there is in Emacs with `report-emacs-bug'? incal, best email the list zsh-workers@zsh.org danielsh: is that in Gwene? I see gmane.comp.shells.zsh.user and gmane.comp.shells.zsh.devel - is it one of them? Or would they work still? incal, either of those works (the lists are nested) -- underground experts united http://user.it.uu.se/~embe8573