|
| From: | John W. Eaton |
| Subject: | [Octave-bug-tracker] [bug #31512] Problem with code on Linux octave 3.2.3 and 3.2.4/// OK on mac w/ 3.2.3 |
| Date: | Fri, 05 Nov 2010 20:36:09 +0000 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15) |
Follow-up Comment #3, bug #31512 (project octave):
"FYI - another thing I noticed consistently with octave is that it can
compute the correct mod operation only with integers. For example, try
for pp=1:1e4
if mod(pp*.025,.1)==0"
I don't think this is a bug. Neither .025 or .1 are exactly representable in
binary, so you are not computing what you think you are.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31512>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |