drab wrote:This works fine
3 ⎕dr x
But it doesn't work if you do the same thing inside a function f.
3 ⎕dr y
And it doesn't matter whether or not ⎕fpc is local inside the function.
It doesn't work either way.
This is normal behavior for MPFR constants as they are currently defined; however because of behavior such as this that definition needs to change.
The precision of the constant 2.1v
is set to the current value of ⎕FPC
(256) when the function is fixed. Assigning to ⎕FPC
inside the function does not change the precision of its constants. Note the difference if you assign ⎕FPC←512
and then fix the function.