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

Re: Floating point modulus



On Jan 10, 11:10pm, Bart Schaefer wrote:
}
} The following patch would instead silently substitute the fmod() call
} when using the % operator on a float.

Incidentally, what's a reliable test for this that could be added to
C01arith.ztst?  I worry about rounding error differing by platform:

torch% print $(( 29.1 % 13.0 ))
3.1000000000000014




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