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

Re: Floating point modulus



On Sun, 11 Jan 2015 12:04:23 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 11,  8:01pm, Peter Stephenson wrote:
> }
> } diff --git a/Test/V03mathfunc.ztst b/Test/V03mathfunc.ztst
> } index ab383db..8761252 100644
> } --- a/Test/V03mathfunc.ztst
> } +++ b/Test/V03mathfunc.ztst
> 
> Thanks, but V03mathfunc is skipped if the zsh/mathfunc module is not
> loadable -- so this test should be in C01arith.ztst.

I'll leave that to you, but instead of an explicit rounding you could do
basically the same calculation but assigned to a variable declared as an
integer and output that.xs

pws



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