octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #45528] mapping: missing function roundn (impl


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #45528] mapping: missing function roundn (implementation supplied)
Date: Sun, 12 Jul 2015 10:02:16 +0000
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1

Follow-up Comment #1, bug #45528 (project octave):

(this actually belongs on the patch tracker)

In
http://nl.mathworks.com/help/map/functionlist.html
there's no mention of "roundn".

However, in
http://nl.mathworks.com/help/map/ref/roundn.html
it says:
"roundn is not recommended. Use round instead."

...and below that there are some examples of rounding to the nearest power of
10. 
Apparently roundn() is somewhat deprecated by Matlab as it has a better
alternative.

Core Octave's round() doesn't have the options Matlab's round() has (see
http://nl.mathworks.com/help/matlab/ref/round.html). That would imply a
separate bug report / feature request to add that option to core Octave. As
far as I'm concerned I'd rather have a roundn as a wrapper for a core Octave
function.

So, what should we do with this roundn contribution?
While I'm not in favor of including deprecated functions even in octave-forge,
it could be that code out there still relies on it.
Octave doesn't have an alternative yet.


BTW, yesterday I've uploaded mapping-1.2.0 to the package release tracker so
this contribution comes just too late anyway.
No big deal, there are several other patches and contributions pending for the
mapping package that all need polishing before they can be included, so roundn
might be included in a next release.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45528>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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