octave-maintainers
[Top][All Lists]
Advanced

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

Re: bad mod function


From: Dmitri A. Sergatskov
Subject: Re: bad mod function
Date: Tue, 19 Jun 2018 10:36:15 -0500

On Tue, Jun 19, 2018 at 7:33 AM, Vic Norton <address@hidden> wrote:

% example of the problem
fprintf('-- bad mod function ---\n');
for i = 1 : 11
  fprintf('%4d', i);
  if mod(i, 5) == 1; fprintf('\n'); end
end

​I have a slightly more recent hg version (which has essentially the same data.cc file
as 4.4.0) and I do not see the problem:

​octave
GNU Octave, version 4.4.0
<...>

octave:1> for i = 1 : 11
>   fprintf('%4d', i);
>   if mod(i, 5) == 1; fprintf('\n'); end
> end
   1
   2   3   4   5   6
   7   8   9  10  11

I suspect this is something specific to Mac. Can you file a bug report
against Homebrew?


Vic

​Sincerely,

​Dmitri.
--


reply via email to

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