Closed lyxal closed 3 years ago
To understand this issue, compare the following programs:
10 1 m
Try it online!
and
10 1z m
The program where 10 is raised to the power of integer 1 outputs as expected. But the program where 10 is raised to the power of float 1.0 never ends. Yet, raising 10 to other floats works.
10
1
1.0
Further, compare the following:
10 2 m
10 2 z z m
(Here, we use z twice to convert 2 to 2.0)
z
2
2.0
The program raising 10 to the power of plain integer 2 works as expected, while the program raising 10 to the power of float 2.0 infinitely runs.
Relevant SE chat conversation
Okay turns out TIO is stale and needs 05AB1E updated.
To understand this issue, compare the following programs:
Try it online!
and
Try it online!
The program where
10
is raised to the power of integer1
outputs as expected. But the program where10
is raised to the power of float1.0
never ends. Yet, raising10
to other floats works.Further, compare the following:
Try it online!
and
Try it online!
(Here, we use
z
twice to convert2
to2.0
)The program raising 10 to the power of plain integer 2 works as expected, while the program raising 10 to the power of float 2.0 infinitely runs.
Relevant SE chat conversation