in reply to printing floats nicely

I have heard that "%_f" does this in C.

No, that's not C.

I do want variable-length output

s/\.?0+\z// if /\./;