Browse Source

refactoring: added new line

remotes/origin/feature/feature-read-math-functions
fdai7763 11 months ago
parent
commit
4c397b2875
  1. 1
      src/main/py/read_math_function.py

1
src/main/py/read_math_function.py

@ -14,6 +14,7 @@ def is_allowed_string(type, value):
allowed = "+-*/()^" allowed = "+-*/()^"
return all(character.isdigit() or character in allowed for character in value) return all(character.isdigit() or character in allowed for character in value)
def calculate_string(string): def calculate_string(string):
string = string.replace('^', '**') string = string.replace('^', '**')
try: try:

Loading…
Cancel
Save