|
From: | Nicholas Jankowski |
Subject: | [Octave-bug-tracker] [bug #59642] In Matlab, round() can be called with 3 arguments: round(X, N, type), while in Octave with one argument only: round(X) |
Date: | Wed, 9 Dec 2020 11:22:53 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 |
Follow-up Comment #2, bug #59642 (project octave): confirmed. according to the Matlab help, the function behavior was expanded in 2014 https://www.mathworks.com/help/matlab/ref/round.html "Behavior changed in R2014b In R2014b, these syntaxes were added to round to any number of decimal or significant digits and to round duration values: Y = round(X,N) Y = round(X,N,type) Y = round(t) Y = round(t,unit) Older versions of MATLABĀ® support only this syntax, which rounds to the nearest integer: Y = round(X) " _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59642> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |