JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
275 stars 64 forks source link

Exponential operations should be performed from right to left #178

Closed Withered-Flower-0422 closed 1 month ago

Withered-Flower-0422 commented 1 month ago

MiniScript:

> 3^3^3
19683
>

Python:

>>> 3**3**3
7625597484987
>>>

JavaScript:

> 3**3**3
7625597484987
>

Lua:

> 3^3^3
7625597484987.0
>

Also mathematically speaking, exponential operations should be performed from right to left.

JoeStrout commented 1 month ago

Closing as duplicate of #172.