[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: anonymous
Subject: [Octave-bug-tracker] [bug #55238] Modulo [mod(X, Y)] of larger values seems to fail silently to output 0
Date: Tue, 18 Dec 2018 05:22:31 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

I think this is not a bug.

This is because 17^23 is larger than flintmax
while 17^12 and 17^11 are smaller than flintmax.

Therefore, 17^23 cannot be represented accurately by "double" type,
so the result of mod(17^23,55) has error.


Reply to this item at:


  Message sent via Savannah

reply via email to

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