mod of int32 and double
John W. Eaton
jwe at bevo.che.wisc.edu
Thu May 22 05:01:42 CDT 2008
On 22-May-2008, Jaroslav Hajek wrote:
| On Thu, May 22, 2008 at 10:06 AM, Peter L. Søndergaard
| <peter at sonderport.dk> wrote:
| > I am using version 3.0.0 (shipped with Fedora).
| >
| > The following fails:
| >
| > octave:10> mod(int32(4),5)
| > ans = -1
| >
| > It should of course be (as in the case of doubles):
| >
| > octave:11> mod(4,5)
| > ans = 4
| >
| > I have not tested wether this is present in newer version of Octave.
| >
| > Cheers,
| >
|
|
| it seems to work in development sources.
I applied the attached patch from the default branch to the
release-3-0-x branch.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080522/45ede2e6/attachment-0001.ksh
More information about the Bug-octave
mailing list