octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #41999] Modulo with big integers result negati


From: anonymous
Subject: [Octave-bug-tracker] [bug #41999] Modulo with big integers result negative values
Date: Sat, 29 Mar 2014 22:06:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

URL:
  <http://savannah.gnu.org/bugs/?41999>

                 Summary: Modulo with big integers result negative values
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 29 Mar 2014 10:06:22 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Travenin
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I was doing calculations with big integers when I got

octave:1> mod(110008777836610192, 10)
ans = -16

which is wrong because ans = 2 would be correct.

Then I found out that mod gives wrong answers (0 or negative) with many big
integers.

I am just a user and do not have much idea what is the problem.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41999>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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