delete button fix

This commit is contained in:
zeroflag 2021-08-08 12:34:02 +02:00
parent 7ec3aea64c
commit 65f43d0a4c

View file

@ -269,4 +269,10 @@ public class Num implements Obj, LogicOperand, ArithmeticOperand {
? Double.compare(doubleValue(), ((Num) other).doubleValue())
: -1;
}
public boolean isReal() {
if (value instanceof Double)
return !((Double) value).isNaN() && !((Double) value).isInfinite();
return true;
}
}