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

Re: forcing output type



[moved to -workers]

> The expression "2/3" is a truncating integer division; its value is
> exactly 0.  Just as in C, if you want to do a floating-point division
> you have to provide floating-point operands.

Would anyone object to something like $(( [#.] 2/3 )) to
avoid integer truncation?



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