Commit d0b7f50d authored by Grand Francois's avatar Grand Francois
Browse files

correction de la valeur du paramètre iPrec qui n'était pas entière

Showing with 1 addition and 1 deletion
+1 -1
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment