RosettaCodeData/Task/Arithmetic-evaluation/E/arithmetic-evaluation-2.e
2023-07-01 13:44:08 -04:00

8 lines
144 B
Text

? arithEvaluate("1 + 2")
# value: 3
? arithEvaluate("(1 + 2) * 10 / 100")
# value: 0.3
? arithEvaluate("(1 + 2 / 2) * (5 + 5)")
# value: 20.0