[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54602] (patch) fix behavior of octfile signed
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54602] (patch) fix behavior of octfile signed int mod |
Date: |
Thu, 6 Sep 2018 00:42:58 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Update of bug #54602 (project octave):
Category: None => Libraries
Item Group: Matlab Compatibility => Incorrect Result
Status: None => Patch Submitted
Release: other => dev
_______________________________________________________
Follow-up Comment #1:
Confirmed. A simple test is to check the results for doubles.
octave:15> mod (125, 25)
ans = 0
octave:16> mod (-125, 25)
ans = 0
octave:17> mod (-125, -25)
ans = -0
octave:18> mod (int8(-125), int8(-25))
ans = -25
The result for int8 integers should match the result for doubles which are
also perfect integers.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54602>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54602] (patch) fix behavior of octfile signed int mod,
Rik <=