Hi,

I was trying to use a quick calculation like the new mathfun in lmtx for an older mkiv document.

MWE from the wiki:
https://wiki.contextgarden.net/Programming_in_LuaTeX#Examples

\starttext
$\pi = \ctxlua{context("\%.6f", math.pi)}$
\stoptext

But that gives an error (actually for both lmtx and mkiv): token call, syntax: [ctxlua]:1: invalid escape sequence near '"\%'

Whereas

\starttext
$\pi = \startluacode context("%.6f", math.pi) \stopluacode$
\stoptext

Works fine as expected.

Is there a way to escape the percentage sign in ctxlua as a format value?

Adam