boolean u1 = mXparser.checkIfAlmostIntRounding(); mXparser.disableAlmostIntRounding(); boolean u2 = mXparser.checkIfAlmostIntRounding(); mXparser.enableAlmostIntRounding(); boolean u3 = mXparser.checkIfAlmostIntRounding(); if ( (u1 == true) && (u2 == false) && (u3 == true)) test[testId] = true;