first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package org.nfunk.jep.function;
import java.util.Stack;
import org.nfunk.jep.ParseException;
public class Not extends PostfixMathCommand {
public void run(Stack paramStack) throws ParseException {
checkStack(paramStack);
Number number = (Number)paramStack.pop();
if (number instanceof Number) {
boolean bool = (((Number)number).doubleValue() == 0.0D) ? true : false;
paramStack.push(new Double(bool));
} else {
throw new ParseException("Invalid parameter type");
}
}
}