I would like to use the development version of metapost with luamplib. I've switched over the executable mpost.exe which is presumable called by luamplib somewhere along the line. Now, I would like to pass the option --math=double to mpost.exe so that I can perform calculations on numbers larger than 4096. Is this possible and, if so, then how can it be done? I run Windows 7 and miktex 2.9 if it's relevant.
Edit, the question above is based on a misunderstanding of how this worked, Khaled cleared that up in the first comment below: What I have done so far (thanks Khaled):
- Downloaded the latest luatex from here
- Replaced the binary in my miktex folder with the downloaded version (and updated formats and FNDB just in case).
- Downloaded the mplib source from here and searched through the file
mplibapi.pdf. - Found reference to
mp_math_double_modeon page 7. - Looked through
luamplib.lua, and inferred that options could be passed in the function
function load()
local mpx = mplib.new {
find_file = finder,
ini_version = true,
math_mode = mp_math_double_mode,<--edit here
}
mpx:execute(format("input %s ;", currentformat))
return mpx
end
to which I added the indicated line. Still no luck.

numbersystemfrom MetaPost code (the command line option changed to--numbersystemas well). – خالد حسني Feb 20 '13 at 20:20\begin{mplibcode}and\end{mplibcode}I can usenumbersystem=double;and that should work? – Scott H. Feb 20 '13 at 20:24\mplibnumbersystem{double}in the preamble. – Franck Pastor Mar 14 '14 at 12:58