|
From: | Dmitri A. Sergatskov |
Subject: | Re: Calculation issue with octave (data unexpectedly go to zero at some point) |
Date: | Thu, 27 Feb 2014 18:21:51 -0600 |
2014-02-28 1:03 GMT+01:00 Dmitri A. Sergatskov <address@hidden>:
It could be that there is a bug in mod:
octave:20> mod(0.2, 0.2)
ans = 0
octave:21> mod(0.4, 0.2)
ans = 0
octave:22> mod(0.6, 0.2)
ans = 0.20000 # ??????????????
octave:23> mod(0.8, 0.2)
ans = 0In general it seems like a really bad idea to call mod with non-integer arguments.
[Prev in Thread] | Current Thread | [Next in Thread] |