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: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #41999] Modulo with big integers result negative values
Date: Sat, 29 Mar 2014 23:53:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Follow-up Comment #3, bug #41999 (project octave):

What you probably meant to do is:

aa=int64(110008777836610192)
mod(aa,10)

which gives 

ans = 2

This is not the case in Matlab.

    _______________________________________________________

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]