xfp

Arithmetic in the document.

Loading

\usepackage{xfp}

A module of its own, compiled into mLaTeX: the package's commands are defined over mLaTeX's primitives.

Commands

\dimeval, \fpeval, \inteval.

Example

A document that uses it, from mLaTeX's own tests, so it compiles as written, and below it what mLaTeX sets from it in your browser:

xfp.tex
\documentclass{article}
\usepackage{xfp}
\begin{document}
\fpeval{2*(3+4)/5}, \fpeval{sqrt(2)}, \inteval{7*6}.
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX