Hello groff users,
can I format/scale numbers when interpolating them?
Long explanation follows.
While writing a minimal reproducible example for this list,
I found myself typing:
Line length is set to:
.nr calc \n[.l]/1c
\n[calc]
Notice how, to interpolate line length in centimetres: I picked
an auxiliary register, scaled the number to centimetres, and then
displayed it.
I am sure I am not the first one wanting to format number output.
Is there a way to — say — \n[my-id]c to have a register interpolated
in a specific scaling unit?
Thanks
—F