[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55238] Modulo [mod(X, Y)] of larger values s

From: Michael Leitner
Subject: [Octave-bug-tracker] [bug #55238] Modulo [mod(X, Y)] of larger values seems to fail silently to output 0
Date: Sat, 22 Dec 2018 05:54:01 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #7, bug #55238 (project octave):

mod is not constrained to integer input, so flintmax is not the point. I would
expect also mod(100,pi) to be inaccurate in the last two digits, because most
probably mod in this case is equivalent to fmod, thus giving the result of
100-31*pi (which obviously suffers from extinction in the last places).

Or is the documentation to be understood literally and mod is special-cased
only for integer types and not doubles that are integers, so that also in the
most common use-case mod falls back to fmod? Then the problem would be even
more severe.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]