From d0b7f50ded64a04328ddc3c553af14eb223b9274 Mon Sep 17 00:00:00 2001
From: "francois.grand" <francois.grand@irstea.fr>
Date: Wed, 11 Oct 2017 12:03:54 +0200
Subject: [PATCH] =?UTF-8?q?correction=20de=20la=20valeur=20du=20param?=
 =?UTF-8?q?=C3=A8tre=20iPrec=20qui=20n'=C3=A9tait=20pas=20enti=C3=A8re?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/section/section_type.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/section/section_type.ts b/src/section/section_type.ts
index e037d6a6..d71bdc7b 100644
--- a/src/section/section_type.ts
+++ b/src/section/section_type.ts
@@ -27,7 +27,7 @@ export abstract class cParamsCanal implements IParamsEquation {
                 this._Q = new ParamDefinition(nodeType, 'Q', ParamDomainValue.POS_NULL, rQ);
                 this._If = new ParamDefinition(nodeType, 'If', ParamDomainValue.ANY, rIf);
                 this._Prec = new ParamDefinition(nodeType, 'Prec', ParamDomainValue.POS, rPrec);
-                this._iPrec = new ParamDefinition(nodeType, 'iPrec', ParamDomainValue.ANY, -Math.log(rPrec) / Math.log(10));
+                this._iPrec = new ParamDefinition(nodeType, 'iPrec', ParamDomainValue.ANY, Math.round(-Math.log(rPrec) / Math.log(10)));
                 this._YB = new ParamDefinition(nodeType, 'YB', ParamDomainValue.POS, rYB);
                 this._YCL = new ParamDefinition(nodeType, 'YCL', ParamDomainValue.POS_NULL, rYCL);
                 this._Dx = new ParamDefinition(nodeType, 'Dx', ParamDomainValue.NOT_NULL, rDx);
-- 
GitLab