Browse Source

OR equation corrected

Debashis Chandra Ray 5 years ago
parent
commit
83132e0010
1 changed files with 1 additions and 1 deletions
  1. 1 1
      JavaScript/JavaScript_SDK/CertainTrust.js

+ 1 - 1
JavaScript/JavaScript_SDK/CertainTrust.js

@@ -277,7 +277,7 @@ CertainTrust.prototype._singleOR = function(arg) {
 
 	resF = f1 + f2 - f1*f2;
 
-	if (this._almostEqual(resF, 0)){
+	if (this._almostEqual(resF, 0)){ // avoid divide by zero
 		f1 = 0.99999;
 		f2 = 0.99999;
 		resF = f1 + f2 - f1*f2;