From bug-octave-request at bevo dot che dot wisc dot edu Mon Jan 27 19:28:17 2003 Subject: Re: Modulo operator? From: Erik de Castro Lopo To: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 28 Jan 2003 12:24:45 +1100 On Mon, 27 Jan 2003 18:37:53 -0600 "Roy Stehlik" wrote: > Octave doesn't appear to me to have a modulo operator, similar to > Matlab's mod(n,N) function. > > > > Is this true? > > > > Thanks for a great program. Matlab used to use rem (remainder) for modulo which Octave does support. octave:1 > rem (112.3, 12) ans = 4.3000 Matlab may have decided to adopt mod instead of rem some time since I lasy used Matlab (1991). Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam at mega-nerd dot com (Yes it's valid) +-----------------------------------------------------------+ "TLC declared bankruptcy after they received less than 2 percent of the $175 million earned by their CD sales. That was about 40 times less than the profit that was divided among their management, production and record companies." -- Courtney Love on the REAL piracy ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------