Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Floating point modulus - the "why not"
- X-seq: zsh-workers 34262
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Floating point modulus - the "why not"
- Date: Mon, 12 Jan 2015 21:38:52 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I think we did the right thing, but just as a counter-point:
torch% print $(( 91 % 13 ))
0
torch% print $(( 9.1 % 1.3 ))
1.2999999999999994
Messages sorted by:
Reverse Date,
Date,
Thread,
Author