louisdh/lioness

Powers order bug

louisdh opened this issue · 0 comments

Currently, 3^3^3 evaluates to 19.683.
This is achieved because the powers are executed from left to right:
3^3^3 => (3^3)^3 => 27^3 => 19.683

The correct behavior is to execute powers from right to left:
3^3^3 => 3^(3^3) => 3^27 => 7.625.597.484.987