From bfa64a0435c6274e7bd6a94dde9eca80b26f2f1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stepan@adjemian.eu>
Date: Thu, 7 Jan 2021 10:45:56 +0100
Subject: [PATCH] Set default value for precision parameter.

---
 src/@dseries/round.m | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/@dseries/round.m b/src/@dseries/round.m
index 430c049..6c8ec6e 100644
--- a/src/@dseries/round.m
+++ b/src/@dseries/round.m
@@ -9,7 +9,7 @@ function o = round(o, n) % --*-- Unitary tests --*--
 % OUTPUTS
 % - o [dseries]
 
-% Copyright (C) 2020 Dynare Team
+% Copyright (C) 2020-2021 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -26,6 +26,10 @@ function o = round(o, n) % --*-- Unitary tests --*--
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
+if nargin<2 || isempty(n)
+    n = 0;
+end
+
 o = copy(o);
 o.round_(n);
 
-- 
GitLab