|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #55682] round(X,N) and round(X,N,type) |
Date: | Sat, 25 May 2019 19:59:41 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #10, bug #55682 (project octave): *Sigh* It is very clean that way, but I had hoped to limit the re-writing of the API. This will require propagating a two-input round form up through libinterp and back down in to liboctave. Presumably we should also maintain a legacy zero-input form, or arrange for defaults in the function prototype for the 2-input form such that it can be called with no arguments. Can't use ceil() in place of round because it always rounds in the direction of positive infinity. ceil (-1.5) == -1 round (-1.5) == -2 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?55682> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |