Open folkertvanheusden opened 2 years ago
There is a one quick fix for this but will always return float as output for '^' operator.
import math
from py_expression_eval import Parser
parser = Parser()
parser.ops2['**'] = math.pow
parser.ops2['^'] = math.pow
parser.parse("2^99999999").evaluate({})
# This will cause
OverflowError: math range error
e.g.:
2 ^ 999999999999999999999999999999999999