[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45528] mapping: missing function roundn (impl
From: |
Ufos |
Subject: |
[Octave-bug-tracker] [bug #45528] mapping: missing function roundn (implementation supplied) |
Date: |
Sat, 08 Aug 2015 13:40:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #6, bug #45528 (project octave):
I can't believe there's been more discussion, that the actual code required.
WORKAROUND:
a = 0.056787654
round_digit = 2
if exist('OCTAVE_VERSION', 'builtin') ~= 0;
a = a.*(10^(round_digit));
a = floor(a);
a = a.*(10^(-round_digit));
else
a = round(a, round_digit);
end
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45528>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45528] mapping: missing function roundn (implementation supplied),
Ufos <=