[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: Mike Miller
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 14:03:24 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Update of bug #55238 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 


Follow-up Comment #5:

The latest comments are correct, this is not a bug, but a limitation that
requires understanding of the numerical operation of Octave.

See also bug #35680 and bug #50808, other results that people searching may
find helpful.

As a workaround, if you want arbitrary precision integer arithmetic, you can
look at Octave's symbolic package:

>> mod (17 ^ 23, 55)
ans = 0
>> double (mod (vpa(17) ^ vpa(23), 55))
ans =  18


Reply to this item at:


  Message sent via Savannah

reply via email to

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