Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

why do ceil/floor give the decimal dot?



From #zsh (incal == yours truly):

<incal> 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
        
<danielsh> incal, I suspect that's an oversight.
<danielsh> incal, it just uses the C floor() function,

<incal> 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'?
        
<danielsh> incal, best email the list
           zsh-workers@xxxxxxx

<incal> 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?
        
<danielsh> incal, either of those works (the lists are
           nested)

-- 
underground experts united
http://user.it.uu.se/~embe8573



Messages sorted by: Reverse Date, Date, Thread, Author